Skip to content

Commit

Permalink
rust(build): crates.io dry run workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed Nov 8, 2024
1 parent 9cacbd2 commit 7667258
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rust_release_dry_run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Crates Publish (Dry Run)

on:
workflow_dispatch:

jobs:
rust-ci:
if: github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/tags')
uses: ./.github/workflows/rust_ci.yaml

publish-to-crate-io-dry-run:
name: Do a dry run publish to crates.io
needs: rust-ci
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
path: './rust'
dry-run: true

0 comments on commit 7667258

Please sign in to comment.