name: Publish to crates.io on: workflow_call: inputs: plan: required: true type: string jobs: publish: runs-on: ubuntu-latest env: PLAN: ${{ inputs.plan }} CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo publish