File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Action Release
2+ on :
3+ push :
4+ tags :
5+ - " v*.*.*"
6+ - " v*.*.*-*"
7+ merge_group :
8+ branches :
9+ - main
10+ release :
11+ types :
12+ - created
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v6
19+ - name : Build Project Assets
20+ run : |
21+ mkdir -pv wezterm-types
22+ cp -rv lua README.md CREDITS.md LICENSE wezterm-types
23+ zip -r -9 wezterm-types.zip wezterm-types
24+ tar cvJf wezterm-types.tar.xz wezterm-types
25+ sha512sum wezterm-types.zip wezterm-types.tar.xz >| sha512sums.txt
26+ md5sum wezterm-types.zip wezterm-types.tar.xz >| md5sums.txt
27+ rm -rfv wezterm-types
28+ - name : Get Release
29+ uses : joutvhu/get-release@v1.0.3
30+ with :
31+ latest : true
32+ prerelease : true
33+ pattern : ' ^v.*'
34+ debug : true
35+ throwing : true
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ - name : Build Release File
39+ run : |
40+ echo ${{ github.sha }} > Release.txt
41+ cat Release.txt
42+ - name : Release
43+ uses : softprops/action-gh-release@v2.5.0
44+ if : github.ref_type == 'tag'
45+ with :
46+ files : |
47+ Release.txt
48+ wezterm-types.tar.xz
49+ wezterm-types.zip
50+ md5sums.txt
51+ sha512sums.txt
52+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments