Skip to content

Merge pull request #15 from alexander-demicev/releaseworkflow #4

Merge pull request #15 from alexander-demicev/releaseworkflow

Merge pull request #15 from alexander-demicev/releaseworkflow #4

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
permissions: {}
jobs:
goreleaser:
runs-on: ubuntu-latest
permissions:
contents: write # create GH releases
id-token: write # ephemeral keys (a.k.a. "keyless") signing
attestations: write # write GH attestations
steps:
- name: Checkout
uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb # v4.2.2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
with:
go-version: stable
- uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Attest release artefacts
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
with:
subject-path: "dist/slsactl*"