Skip to content

.github/workflows/release.yml #17

.github/workflows/release.yml

.github/workflows/release.yml #17

Workflow file for this run

on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64
goos: [linux, windows]
goarch: ["386", amd64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
binary_name: "halsecure"
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: "-X github.com/halacs/bisecur/cli/cmd.Version=${{ env.GITHUB_REF_NAME }}"
#extra_files: LICENSE README.md