Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
canc3s committed Aug 3, 2023
1 parent 0c6dc0e commit 3e63b17
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,29 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.20
cache: true
- run: go build -trimpath -ldflags "-w -s -extldflags '-static'" -o target/${{ matrix.output }}
- uses: actions/upload-artifact@v3
with:
name: target
path: target/*

upload-release:
name: Release
needs: [ build-cli ]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: target
path: target
- run: ls -al target && ls -R target/ && file target/
# release assets
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: target/*

0 comments on commit 3e63b17

Please sign in to comment.