Skip to content

Commit 38caad1

Browse files
committed
Add release.yml
1 parent d1f00a4 commit 38caad1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
create_release:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Read info
18+
id: tags
19+
shell: bash
20+
run: |
21+
echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
22+
- name: Create Release
23+
id: create_release
24+
uses: actions/create-release@master
25+
env:
26+
GITHUB_TOKEN: ${{ github.token }}
27+
with:
28+
tag_name: ${{ steps.tags.outputs.tag }}
29+
release_name: ${{ steps.tags.outputs.tag }}
30+
draft: false
31+
prerelease: false

0 commit comments

Comments
 (0)