bump dependencies (#692) #274
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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.21 | |
- 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/[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@v4 | |
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@v4 | |
with: | |
version: latest | |
args: release --rm-dist --debug -f .github/goreleaser_configs/goreleaser.yml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |