We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7646c52 + e830b12 commit 3ac9882Copy full SHA for 3ac9882
.github/workflows/build.yml
@@ -1,8 +1,10 @@
1
-name: Build
+name: Build and release
2
3
on:
4
push:
5
branches: [ master ]
6
+ tags:
7
+ - v*
8
pull_request:
9
10
@@ -30,3 +32,22 @@ jobs:
30
32
with:
31
33
name: AppImage
34
path: build/Zegarek*.AppImage
35
+
36
+ - name: Set ref
37
+ id: set_ref
38
+ run: |
39
+ echo $GITHUB_REF
40
+ FILTERED_REF=`echo $GITHUB_REF | sed "s?refs/tags/v??"`
41
+ echo "::set-env name=FILTERED_REF::$FILTERED_REF"
42
43
+ - name: Release
44
+ uses: softprops/action-gh-release@v1
45
+ if: startsWith(github.ref, 'refs/tags/v')
46
+ with:
47
+ files: |
48
+ build/Zegarek*.AppImage
49
+ draft: false
50
+ prerelease: false
51
+ name: Zegarek ${{ env.FILTERED_REF }}
52
+ env:
53
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments