Skip to content

Workflow file for this run

name: Publish Package to Crates.io
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo build --verbose
- run: cargo test --verbose
env:
PDL_API_KEY: ${{secrets.PDL_API_KEY}}
publish-crate-io:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}