Skip to content

Update release workflows (#94) #40

Update release workflows (#94)

Update release workflows (#94) #40

Workflow file for this run

name: 'release'
on:
push:
tags:
- 'v*'
permissions:
attestations: 'write'
contents: 'write'
id-token: 'write'
packages: 'write'
jobs:
release:
runs-on: 'ubuntu-latest'
steps:
- uses: 'docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf' # ratchet:docker/setup-qemu-action@v3
- uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # ratchet:actions/checkout@v4
with:
fetch-depth: 0
- uses: 'actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed' # ratchet:actions/setup-go@v5
with:
go-version-file: 'go.mod'
- uses: 'docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567' # ratchet:docker/login-action@v3
with:
registry: 'ghcr.io'
username: '${{ github.actor }}'
password: '${{ secrets.GITHUB_TOKEN }}'
- uses: 'goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf' # ratchet:goreleaser/goreleaser-action@v6
id: 'goreleaser'
with:
version: '~> 2'
args: 'release --clean --fail-fast'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- uses: 'actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018' # ratchet:actions/attest-build-provenance@v1
with:
subject-path: |-
dist/*.tar.gz
dist/*.zip