Crates Publish (Dry Run) #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Crates Publish (Dry Run) | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: "Optional git tag or commit SHA to publish from" | |
| type: string | |
| required: false | |
| jobs: | |
| rust-ci: | |
| uses: ./.github/workflows/rust_ci.yaml | |
| with: | |
| ref: ${{ github.event.inputs.ref }} | |
| publish-to-crates-io-dry-run: | |
| runs-on: ubuntu-latest | |
| name: Do a dry run publish to crates.io for the sift rust libraries | |
| needs: rust-ci | |
| environment: | |
| name: crates.io (dry run) | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.inputs.ref || github.sha }} | |
| - name: Install stable toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Publish crates (dry run) | |
| run: cargo publish --workspace --exclude sift-stream-bindings --exclude sift_cli --manifest-path ./rust/Cargo.toml --locked --dry-run |