Skip to content

chore: upgrade go releaser config v0 -> v2 #19

chore: upgrade go releaser config v0 -> v2

chore: upgrade go releaser config v0 -> v2 #19

---
name: Check Go Releaser config
on: # yamllint disable-line rule:truthy
push:
branches: [main, master]
paths:
- ".goreleaser.yaml"
- ".github/workflows/check-goreleaser-config.yaml"
pull_request:
branches: [main, master]
paths:
- ".goreleaser.yaml"
- ".github/workflows/check-goreleaser-config.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checkGoReleaserConfig:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
# Without quotes, 1.20 becomes 1.2!
go-version: ["1.21"]
steps:
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: src/gabo/go.sum
- name: Install Go Releaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
install-only: true
- name: Check Go Releaser config is valid
run: goreleaser check --config .goreleaser.yaml
- name: Build (not release) binaries with Go Releaser
run: goreleaser build --snapshot --clean