Skip to content

bump action versions and fix goreleaser flags (#693) #275

bump action versions and fix goreleaser flags (#693)

bump action versions and fix goreleaser flags (#693) #275

Workflow file for this run

# See related documentation in https://github.com/anz-bank/sysl/blob/master/docs/releasing.md
name: Release
on:
push:
tags:
- 'v*.*.*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOPROXY: ${{ vars.GOPROXY }}
jobs:
release-arrai:
name: Release Arr.ai
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
git restore go.mod go.sum
- name: Build
run: PATH=$PATH:$(go env GOPATH)/bin make all
- name: Validate goreleaser config
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: check -f .github/goreleaser_configs/goreleaser.yml
- name: Set GOVERSION env var
run: echo "GOVERSION=$(go version | awk '{print $3, $4;}')" >> $GITHUB_ENV
# Configured via `.github/goreleaser_config/.goreleaser.yml`
- name: Release binaries via goreleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean --verbose -f .github/goreleaser_configs/goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}