Skip to content

Workflow file for this run

on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64, windows/amd64, darwin/amd64
goos: [linux, windows, darwin]
goarch: [amd64]
steps:
- uses: actions/checkout@v4
- name: Set env
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: wangyoucao577/go-release-action@v1.40
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: os-nova
asset_name: nomad-nova-autoscaler-${{ env.RELEASE_TAG }}-${{ matrix.goos }}-${{ matrix.goarch }}