File tree Expand file tree Collapse file tree 1 file changed +1
-33
lines changed
Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Original file line number Diff line number Diff line change 6060 name : myapp-${{ needs.get-next-version.outputs.next_version }}-windows
6161 path : dist/
6262
63- create-tag-and-release :
64- needs : [get-next-version, build-windows]
65- runs-on : ubuntu-latest
66- steps :
67- - uses : actions/checkout@v4
68- with :
69- fetch-depth : 0
70-
71- - name : Download Windows artifact
72- uses : actions/download-artifact@v4
73- with :
74- name : myapp-${{ needs.get-next-version.outputs.next_version }}-windows
75-
76- - name : Create Git tag
77- run : |
78- git config --global user.name "GitHub Actions"
79- git config --global user.email "actions@github.com"
80- git tag ${{ needs.get-next-version.outputs.next_version }}
81- git push origin ${{ needs.get-next-version.outputs.next_version }}
82- env :
83- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
84-
85- - name : Create GitHub Release
86- uses : softprops/action-gh-release@v2
87- with :
88- tag_name : ${{ needs.get-next-version.outputs.next_version }}
89- name : Release ${{ needs.get-next-version.outputs.next_version }} (Win7 兼容)
90- body : |
91- 自动发布版本 ${{ needs.get-next-version.outputs.next_version }}
92- 仅包含 Windows 版本(支持 Windows 7)
93- files : myapp-${{ needs.get-next-version.outputs.next_version }}-windows/*
94- env :
95- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63+
You can’t perform that action at this time.
0 commit comments