Commit df2be8d
committed
ci(release): publish to crates.io via trusted publishing
Add a publish-rust job mirroring cooklang-rs: OIDC auth through
rust-lang/crates-io-auth-action, then `cargo publish --no-verify`.
It depends on create-release rather than the build jobs — a crates.io
publish can only be yanked, never redone, so it should not run unless
the tag and GitHub release actually landed.
Also adopt two cooklang-rs conventions: a dry_run input gating all
three publish/release jobs, and prerelease derived from alpha/beta/rc
in the version string instead of hardcoded false.
Requires one-time setup on crates.io: Trusted Publishing for
cooklang/cooklang-import with workflow filename release.yml.1 parent aec4293 commit df2be8d
1 file changed
Lines changed: 35 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
351 | 356 | | |
352 | 357 | | |
353 | 358 | | |
| 359 | + | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
| |||
391 | 397 | | |
392 | 398 | | |
393 | 399 | | |
394 | | - | |
| 400 | + | |
395 | 401 | | |
396 | 402 | | |
397 | 403 | | |
| |||
456 | 462 | | |
457 | 463 | | |
458 | 464 | | |
| 465 | + | |
459 | 466 | | |
460 | 467 | | |
461 | 468 | | |
| |||
631 | 638 | | |
632 | 639 | | |
633 | 640 | | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
0 commit comments