Skip to content

Workflow file for this run

on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
release:
name: release
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin, freebsd]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: freebsd
- goarch: 386
goos: freebsd
steps:
- uses: actions/checkout@v4
- name: Set VERSION env
run: echo "VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev )" >> $GITHUB_ENV
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: "-X main.Version=${{ env.VERSION }}"
binary_name: "mjau"
overwrite: true