Skip to content

Clarify foreign fallback scope and env/vars precedence #7

Clarify foreign fallback scope and env/vars precedence

Clarify foreign fallback scope and env/vars precedence #7

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # gh release create
id-token: write # sigstore signing for attestations
attestations: write # actions/attest-build-provenance
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
persist-credentials: false
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- name: Build binaries for all platforms
run: >
docker buildx build
--platform linux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64,windows/arm64
--output=./dist
.
- name: Attest build provenance
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
with:
subject-path: "dist/*/*"
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ github.ref_name }}" --generate-notes dist/*/*