zip-rs-wasm/.github/workflows/release-plz.yml
Chris Hennick 6fa4486089
Enable attestation of release builds
Per https://github.com/actions/attest-build-provenance

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
2024-05-15 20:44:04 -07:00

33 lines
848 B
YAML

name: Release
on:
push:
branches:
- 'master'
permissions:
pull-requests: write
contents: write
id-token: write
attestations: write
jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_PLZ_PAT }}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
profile: minimal
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_PAT }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- uses: actions/attest-build-provenance@v1
with:
subject-path: target/release/libzip.rlib