File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Create Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*" # 只要推送以 v 開頭的 tag 就觸發,例如 v1.0.0
7+
8+ permissions :
9+ contents : write # 這裡要加,否則沒有建 release 的權限
10+
11+ jobs :
12+ release :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Create Release
19+ uses : softprops/action-gh-release@v1
20+ with :
21+ body : |
22+ ## 🚀 What's Changed
23+ - something changed
24+
25+ ## 🐞 What's Fixed
26+ - something fixed
27+
28+ ## 📦 HeadCommit Message
29+
30+ ${{ github.event.head_commit.message }}
31+
32+ ## 🔗 Full Changelog
33+ ${{ github.server_url }}/${{ github.repository }}/compare/${{ github.event.release.tag_name }}^...${{ github.event.release.tag_name }}
34+ env :
35+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments