Skip to content

v0.1.0-rc5

v0.1.0-rc5 #5

name: Release
on:
workflow_dispatch:
release:
types: [created]
permissions: read-all
jobs:
args:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.ldflags.outputs.version }}
steps:
- id: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- id: ldflags
run: |
echo "version=$(git describe --tags --always --dirty | cut -c2-)" >> "$GITHUB_OUTPUT"
build:
permissions:
id-token: write # To sign.
contents: write # To upload release assets.
actions: read # To read workflow path.
needs: args
strategy:
matrix:
os:
- linux
- darwin
arch:
- arm64
- amd64
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
go-version: 1.21
config-file: "hack/slsa-goreleaser/.slsa-goreleaser-${{matrix.os}}-${{matrix.arch}}.yaml"
evaluated-envs: "VERSION:${{needs.args.outputs.version}}"