Commit 54c3c7f 1 parent 34bfea7 commit 54c3c7f Copy full SHA for 54c3c7f
File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 19
19
- name : Install cargo release
20
20
uses : taiki-e/install-action@5bc300ae6202155e070ca83afb334e8aac18c49c # v2
21
21
with :
22
- tool : cargo-release@0.25.17
22
+ tool : cargo-release@0.25.17,just
23
23
- uses : taiki-e/create-gh-release-action@b7abb0cf5e72cb5500307b577f9ca3fd4c5be9d2 # v1
24
24
with :
25
25
prefix : daft
28
28
branch : main
29
29
env :
30
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
- - run : cargo release publish --publish --execute --no-confirm --workspace
31
+ - run : just ci-cargo-release
32
32
env :
33
33
CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
Original file line number Diff line number Diff line change @@ -21,3 +21,11 @@ rustdoc *args:
21
21
generate-readmes :
22
22
# Please install via cargo install --locked --git https://github.com/sunshowers/cargo-sync-rdme for now.
23
23
cargo sync-rdme --toolchain nightly --workspace --all-features
24
+
25
+ # Run cargo release in CI.
26
+ ci-cargo-release :
27
+ # cargo-release requires a release off a branch.
28
+ git checkout -B to-release
29
+ cargo release publish --publish --execute --no-confirm --workspace
30
+ git checkout -
31
+ git branch -D to-release
You can’t perform that action at this time.
0 commit comments