Skip to content

Commit 56539b2

Browse files
committed
chore: sync from pve-openapi@dd8408e
fix(publish-rust): pass --allow-dirty to cargo publish
1 parent cc0135d commit 56539b2

3 files changed

Lines changed: 6 additions & 25 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ jobs:
4141
# what we want here — crates.io versions are immutable, so a
4242
# broken upload is irreversible. `--locked` is skipped because
4343
# this is a library crate and Cargo.lock isn't committed.
44+
#
45+
# `--allow-dirty` is required because the preceding step rewrites
46+
# `Cargo.toml` (version from tag) without committing — the tag
47+
# itself is the authoritative version record, so we don't bother
48+
# committing a one-shot publish-time edit back to the SDK repo.
4449
- name: Publish to crates.io
45-
run: cargo publish
50+
run: cargo publish --allow-dirty
4651
env:
4752
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.openapi-generator/FILES

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gitignore
2-
.openapi-generator-ignore
32
.travis.yml
43
Cargo.toml
54
README.md

0 commit comments

Comments
 (0)