Skip to content

Go Release

Go Release #2

Workflow file for this run

# .github/workflows/release.yaml
on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
releases-matrix:
if: startsWith(github.ref, 'refs/tags/go')
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v1
with:
go-version: "1.21.x"
- name: "go build"
run: go/build.sh
env:
GOARCH: ${{matrix.goarch}}
GOOS: ${{matrix.goos}}
- uses: Shopify/[email protected]
with:
name: vault-${{matrix.goos}}-${{matrix.goarch}}-${{github.ref}}${{matrix.goos == 'windows' && '.exe' ||''}}
path: go/nitor_vault
repo-token: ${{ secrets.GITHUB_TOKEN }}