1 parent 0978158 commit ecad6b4Copy full SHA for ecad6b4
1 file changed
.github/workflows/release.yml
@@ -1,13 +1,9 @@
1
name: Release
2
3
on:
4
- release:
5
- types: [published]
6
- paths:
7
- - "**/*.go"
8
- - "go.mod"
9
- - "go.sum"
10
- - ".github/workflows/*.yml"
+ push:
+ tags:
+ - "v*"
11
12
jobs:
13
build:
@@ -49,9 +45,12 @@ jobs:
49
45
run: tar zcvf snow-${{ matrix.archive-name }} snow LICENSE
50
46
51
47
- name: Release version
52
- uses: softprops/action-gh-release@v2
53
- if: github.event_name == 'release'
48
+ uses: softprops/action-gh-release@v3
54
with:
+ tag_name: ${{ github.ref_name }}
+ name: ${{ github.ref_name }}
55
files: |
56
snow-${{ matrix.archive-name }}
+ generate_release_notes: true
+ fail_on_unmatched_files: true
57
token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments