Skip to content

Bump goreleaser/goreleaser-action from 5 to 6 #20

Bump goreleaser/goreleaser-action from 5 to 6

Bump goreleaser/goreleaser-action from 5 to 6 #20

Workflow file for this run

name: Release with goreleaser
on:
push:
jobs:
build:
runs-on: ubuntu-latest
name: goreleaser
steps:
- uses: actions/checkout@v4
- name: Unshallow Fetch
run: git fetch --prune --unshallow
- uses: actions/setup-go@v5
with:
go-version: '^1.20.0'
- name: Login to Docker Registry
if: startsWith(github.ref, 'refs/tags/v')
run: |
docker login -u=princespaghetti -p="$DOCKER_PASSWORD"
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Release via goreleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release ${{ fromJSON('["--skip-publish --snapshot", ""]')[startsWith(github.ref, 'refs/tags/v')] }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}