Skip to content

add goreleaser + release workflow #3

add goreleaser + release workflow

add goreleaser + release workflow #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
packages: write
env:
REPOSITORY: ghcr.io/${{ github.repository }}
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: ko-build/setup-ko@v0.7
- uses: goreleaser/goreleaser-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KO_DOCKER_REPO: ${{ env.REPOSITORY }}
with:
version: latest
args: release