File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ # branches: [main]
8+ # schedule:
9+ # 定时任务,每天 UTC 时间 0 点运行
10+ # - cron: "0 0 * * *"
11+
12+ # workflow_dispatch:
13+ permissions : # Global permissions configuration starts here
14+ contents : read # 'read' access to repository contents
15+ pull-requests : write # 'write' access to pull requests
16+
17+ jobs :
18+ tags :
19+ runs-on : ubuntu-latest
20+
21+ permissions :
22+ contents : write
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v4
26+ with :
27+ fetch-depth : 0 # 为了 git pull --unshallow,我们需要获取所有的提交历史
28+
29+ - name : Set up Git user
30+ run : |
31+ git config --global user.email "[email protected] " 32+ git config --global user.name "AlianBlank"
33+
34+ - name : " ✏️ Generate release changelog"
35+ uses :
heinrichreimer/[email protected] 36+ with :
37+ token : ${{ secrets.GITHUB_TOKEN }}
38+
39+ - name : Commit CHANGELOG.md
40+ run : |
41+ git add CHANGELOG.md
42+ git commit -m "[修改]1.修改更新日志"
43+
44+ - name : change-version-by-tag
45+ uses :
AlianBlank/[email protected] 46+ with :
47+ version : ${{ github.ref_name }}
48+
49+ - name : Push changes
50+ uses : ad-m/github-push-action@master
51+ with :
52+ force : true
53+ tags : true
You can’t perform that action at this time.
0 commit comments