Skip to content

Merge pull request #18 from cryptape/fix/trusted-publishing-auth #2

Merge pull request #18 from cryptape/fix/trusted-publishing-auth

Merge pull request #18 from cryptape/fix/trusted-publishing-auth #2

Workflow file for this run

name: Deploy
on:
push:
tags: ['v*']
jobs:
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- run: rustup update 1.76.0 && rustup default 1.76.0
- name: Run tests
run: cargo test --verbose
env:
RUSTFLAGS: "-Dwarnings"
- uses: rust-lang/crates-io-auth-action@v1
id: auth
- name: Publish
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}