File tree Expand file tree Collapse file tree 1 file changed +10
-19
lines changed
Expand file tree Collapse file tree 1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change 11name : release
22on :
33 push :
4- # Sequence of patterns matched against refs/tags
54 tags :
6- - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
5+ - ' v*'
6+ workflow_dispatch :
77
88jobs :
99
1010 build :
1111 name : Build
1212 runs-on : ubuntu-latest
13+ permissions :
14+ contents : write
1315 steps :
14-
1516 - name : Check out code into the Go module directory
1617 uses : actions/checkout@v4
17-
1818 - name : Set up Go
1919 uses : actions/setup-go@v5
2020 with :
2121 go-version : ' ^1.22'
2222 id : go
23-
2423 - name : Build
2524 run : |
2625 for i in linux-amd64 linux-arm64 linux-riscv64 linux-loong64; do
2726 make ARCH=$i all
2827 tar -cz --numeric-owner --owner root --group root -f tunasync-$i-bin.tar.gz -C build-$i tunasync tunasynctl
2928 done
30-
3129 - name : Create Release
32- id : create_release
33- uses : actions/create-release@v1
34- env :
35- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ uses : softprops/action-gh-release@v2
3631 with :
37- tag_name : ${{ github.ref }}
38- release_name : Release ${{ github.ref }}
39- draft : false
32+ token : ${{ secrets.GITHUB_TOKEN }}
33+ tag_name : ${{ github.ref_name }}
34+ name : Release ${{ github.ref_name }}
4035 prerelease : false
41- - name : Upload Release Assets
42- env :
43- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44- TAG_NAME : ${{ github.ref }}
45- run : |
46- hub release edit $(find . -type f -name "tunasync-*.tar.gz" -printf "-a %p ") -m "" "${TAG_NAME##*/}"
36+ files : |
37+ tunasync-*.tar.gz
You can’t perform that action at this time.
0 commit comments