Skip to content

fix typo in workflow (#275) #272

fix typo in workflow (#275)

fix typo in workflow (#275) #272

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@v4
with:
go-version: 1.19
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Install golangci-lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
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@v4
with:
version: v1.18.2
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@v4
with:
version: latest
args: release --rm-dist --debug -f .github/goreleaser_configs/goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}