Skip to content

Workflow file for this run

name: run-goreleaser
on:
push:
# run only against tags
tags:
- 'v*'
permissions:
contents: write
jobs:
artifact-build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Install Task
uses: arduino/setup-task@v2
- uses: actions/setup-go@v5
with:
go-version: '>=1.20.0'
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
# validate the configuration file
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v2
args: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} # goreleaser-pro key