Skip to content

Commit ecad6b4

Browse files
committed
ci: auto release when push tag
1 parent 0978158 commit ecad6b4

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
name: Release
22

33
on:
4-
release:
5-
types: [published]
6-
paths:
7-
- "**/*.go"
8-
- "go.mod"
9-
- "go.sum"
10-
- ".github/workflows/*.yml"
4+
push:
5+
tags:
6+
- "v*"
117

128
jobs:
139
build:
@@ -49,9 +45,12 @@ jobs:
4945
run: tar zcvf snow-${{ matrix.archive-name }} snow LICENSE
5046

5147
- name: Release version
52-
uses: softprops/action-gh-release@v2
53-
if: github.event_name == 'release'
48+
uses: softprops/action-gh-release@v3
5449
with:
50+
tag_name: ${{ github.ref_name }}
51+
name: ${{ github.ref_name }}
5552
files: |
5653
snow-${{ matrix.archive-name }}
54+
generate_release_notes: true
55+
fail_on_unmatched_files: true
5756
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)