mirror of
https://github.com/github/gh-stack.git
synced 2026-09-14 20:26:28 +08:00
26 lines
563 B
YAML
26 lines
563 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
attestations: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- id: version
|
|
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
|
- uses: cli/gh-extension-precompile@v2
|
|
with:
|
|
generate_attestations: true
|
|
go_version_file: go.mod
|
|
go_build_options: >-
|
|
-ldflags=-X=github.com/github/gh-stack/cmd.Version=${{ steps.version.outputs.version }}
|