Skip to content

fix(acp): correct command input wire (#57) #36

fix(acp): correct command input wire (#57)

fix(acp): correct command input wire (#57) #36

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
id-token: write
attestations: write
artifact-metadata: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Verify release tag
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
RELEASE_TAG: ${{ github.ref_name }}
run: |
semver='^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(\.(0|[1-9][0-9]*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*))?(\+([0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*))?$'
if [[ ! "$RELEASE_TAG" =~ $semver ]]; then
echo "release tag must be SemVer with a v prefix: $RELEASE_TAG" >&2
exit 1
fi
git fetch --no-tags origin "$DEFAULT_BRANCH"
release_commit="$(git rev-parse "${RELEASE_TAG}^{commit}")"
git merge-base --is-ancestor "$release_commit" FETCH_HEAD
- name: Verify release inputs
env:
RELEASE_TAG: ${{ github.ref_name }}
run: make release-check VERSION="${RELEASE_TAG#v}"
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Generate release provenance attestations
uses: actions/attest@v4
with:
subject-checksums: ./dist/checksums.txt