File tree Expand file tree Collapse file tree 1 file changed +11
-17
lines changed
Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change 44 tags :
55 - v*
66
7+ permissions :
8+ contents : write
9+
710jobs :
811 build :
912 runs-on : ubuntu-latest
@@ -23,21 +26,12 @@ jobs:
2326 run : |
2427 GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build \
2528 -trimpath -ldflags="-s -w -X=main.explicitVersion=${GITHUB_REF##*/}" -o bitmapist-server
26- GZIP=-9 tar czvf bitmapist-server-linux-amd64.tar.gz bitmapist-server
27- - name : Create release
28- id : create_release
29- uses : actions/create-release@v1
30- env :
31- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32- with :
33- tag_name : ${{ github.ref }}
34- release_name : ${{ github.ref }}
35- - name : Upload artifact
36- uses : actions/upload-release-asset@v1.0.1
37- env :
29+ tar czvf bitmapist-server-linux-amd64.tar.gz bitmapist-server
30+
31+ GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build \
32+ -trimpath -ldflags="-s -w -X=main.explicitVersion=${GITHUB_REF##*/}" -o bitmapist-server
33+ tar czvf bitmapist-server-linux-arm64.tar.gz bitmapist-server
34+ - env :
3835 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39- with :
40- upload_url : ${{ steps.create_release.outputs.upload_url }}
41- asset_path : ./bitmapist-server-linux-amd64.tar.gz
42- asset_name : bitmapist-server-linux-amd64.tar.gz
43- asset_content_type : application/gzip
36+ run : |
37+ gh release create ${{ github.ref }} bitmapist-server-*.tar.gz
You can’t perform that action at this time.
0 commit comments