Skip to content

Commit c6b6049

Browse files
committed
minor: 限制 release action 只能由 tag 触发
1 parent f4d73b2 commit c6b6049

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: release
22

3-
on: push
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
47

58
jobs:
69
release:
@@ -16,6 +19,7 @@ jobs:
1619
run: |
1720
dotnet build UnlimitedReroll -o bin --configuration Release
1821
echo ${{ github.sha }} > Release.txt
22+
cat Release.txt
1923
- name: Release
2024
uses: softprops/action-gh-release@v1
2125
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)