Skip to content

chore(deps): update dependency goreleaser/goreleaser to v2.14.3 (#275) #179

chore(deps): update dependency goreleaser/goreleaser to v2.14.3 (#275)

chore(deps): update dependency goreleaser/goreleaser to v2.14.3 (#275) #179

Workflow file for this run

---
name: CI
on:
push:
tags:
- 'v*'
branches:
- 'main'
- 'master'
pull_request:
env:
# renovate: datasource=github-releases depName=golangci/golangci-lint versioning=semver-coerced
GOLANGCI_LINT_VERSION: "v2.11.2"
# renovate: datasource=github-releases depName=goreleaser/goreleaser versioning=semver-coerced
GORELEASER_VERSION: "v2.14.3"
# renovate: datasource=github-releases depName=ko-build/ko versioning=semver-coerced
KO_VERSION: "v0.18.1"
jobs:
go:
name: Go
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version-file: 'go.mod'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
- name: Run tests
run: go test -v ./...
- name: Build (Snapshot)
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
version: ${{ env.GORELEASER_VERSION }}
args: --clean --skip=ko,publish --snapshot
- name: Upload Artifacts (Snapshot)
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
name: dist
path: dist/*
- name: Set up ko
uses: ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
if: startsWith(github.ref, 'refs/tags/')
with:
version: ${{ env.KO_VERSION }}
- name: Release
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7
if: startsWith(github.ref, 'refs/tags/')
with:
version: ${{ env.GORELEASER_VERSION }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}