Skip to content

Merge pull request #2 from reegnz/add_goreleaser_action #4

Merge pull request #2 from reegnz/add_goreleaser_action

Merge pull request #2 from reegnz/add_goreleaser_action #4

Workflow file for this run

---
name: goreleaser
on:
push:
# run only against tags
tags:
- "*"
permissions:
contents: write
packages: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}