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 : Release
1+ name : Build and Release Steve API
22
3- on :
3+ on :
44 push :
55 tags :
66 - v*
77
88jobs :
9- release :
9+ build :
1010 runs-on : ubuntu-latest
11- permissions :
12- contents : write
13- steps :
14- - name : Checkout repository
15- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11+ steps :
12+ - uses : actions/setup-go@v2
13+ with :
14+ go-version : 1.24.x
1615
17- - name : Create release on Github
16+ - uses : actions/checkout@v2
17+ with :
18+ fetch-depth : 1
19+ submodules : recursive
20+ persist-credentials : false
21+
22+ - name : Build Steve API
1823 run : |
19- gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes
24+ cd bin/
25+ chmod +x build.sh
26+ ./build.sh
27+
28+ - name : Upload Build
29+ uses : actions/upload-artifact@v2
30+ with :
31+ path : ./release/*
32+ if-no-files-found : error
33+
34+ - name : Create Release and Upload Assets
2035 env :
21- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+ run : |
38+ # Create a release using the tag
39+ gh release create "${{ github.ref_name }}" --generate-notes
40+ # Upload all files in the release directory
41+ for asset in ./release/*; do
42+ gh release upload "${{ github.ref_name }}" "$asset"
43+ done
You can’t perform that action at this time.
0 commit comments