v1.0.0: rewrite from shell to Go #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.21' | |
| - name: Build | |
| run: | | |
| mkdir -p release | |
| GOOS=linux GOARCH=amd64 go build -o release/penhunter_linux_amd64 main.go | |
| GOOS=linux GOARCH=arm64 go build -o release/penhunter_linux_arm64 main.go | |
| GOOS=darwin GOARCH=amd64 go build -o release/penhunter_darwin_amd64 main.go | |
| GOOS=darwin GOARCH=arm64 go build -o release/penhunter_darwin_arm64 main.go | |
| GOOS=windows GOARCH=amd64 go build -o release/penhunter_windows_amd64.exe main.go | |
| - name: Create checksums | |
| run: | | |
| cd release | |
| sha256sum * > checksums.txt | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: release/* | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |