From 9ab7e43d51b27e11d15a29a95463bd0052c3d216 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Tue, 1 Oct 2024 21:04:16 +0100 Subject: [PATCH] chore(ci): fix "Publish with Cargo in dry-run mode" by setting a dummy version which doesn't already exist --- .github/workflows/build_and_release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index f3baf98..4e0299a 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -77,8 +77,12 @@ jobs: components: rustc, cargo toolchain: nightly override: true + - name: Install cargo-edit + run: cargo install cargo-edit + - name: Set the version to a dummy version to allow publishing + run: cargo set-version 9.9.9 - name: Publish to Crates.io - run: cargo publish --dry-run + run: cargo publish --dry-run --allow-dirty create_github_release: name: Create release with binary assets runs-on: ubuntu-latest