mirror of
https://github.com/zizmorcore/zizmor.git
synced 2025-12-23 08:47:33 +00:00
32 lines
758 B
YAML
32 lines
758 B
YAML
name: Release zizmor to crates.io 📦
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
crates:
|
|
name: Publish zizmor to crates.io 📦
|
|
runs-on: ubuntu-latest
|
|
|
|
environment:
|
|
name: crates.io
|
|
url: https://crates.io/crates/zizmor
|
|
|
|
permissions:
|
|
id-token: write # for trusted publishing to crates.io
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: rust-lang/crates-io-auth-action@e919bc7605cde86df457cf5b93c5e103838bd879 # v1.0.1
|
|
id: auth
|
|
|
|
- name: publish to crates.io
|
|
run: cargo publish -p zizmor
|
|
env:
|
|
CARGO_REGISTRY_TOKEN: "${{ steps.auth.outputs.token }}"
|