Skip to content

Commit 67466ed

Browse files
committed
ci: fix cargo publish with --allow-dirty flag
The Cargo.lock can differ between local and CI environments due to index updates. Using --allow-dirty ensures the publish succeeds. Bumps to v0.2.8 since v0.2.7 failed to publish to crates.io.
1 parent c7f9e59 commit 67466ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ jobs:
8888
- name: Install Rust
8989
uses: dtolnay/rust-toolchain@stable
9090

91+
- name: Cache cargo
92+
uses: Swatinem/rust-cache@v2
93+
9194
- name: Publish to crates.io
92-
run: cargo publish
95+
run: cargo publish --allow-dirty
9396
env:
9497
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)