Skip to content

Commit 9c5646d

Browse files
authored
Merge pull request #97 from hugovk/create-release-from-tag
Add GitHub Action to create a release from a tag
2 parents b5254d2 + 435ac67 commit 9c5646d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
# Sequence of patterns matched against refs/tags
4+
tags:
5+
- '[0-9]+\.[0-9]+\.[0-9]+'
6+
7+
name: Create release
8+
9+
jobs:
10+
build:
11+
name: Create release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@master
16+
17+
- name: Create release
18+
id: create_release
19+
uses: actions/create-release@v1
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
22+
with:
23+
tag_name: ${{ github.ref }}
24+
release_name: Release ${{ github.ref }}
25+
body: |
26+
* TODO
27+
draft: false
28+
prerelease: false

0 commit comments

Comments
 (0)