Skip to content

Commit 54c3c7f

Browse files
authored
fix release script (#52)
1 parent 34bfea7 commit 54c3c7f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install cargo release
2020
uses: taiki-e/install-action@5bc300ae6202155e070ca83afb334e8aac18c49c # v2
2121
with:
22-
tool: cargo-release@0.25.17
22+
tool: cargo-release@0.25.17,just
2323
- uses: taiki-e/create-gh-release-action@b7abb0cf5e72cb5500307b577f9ca3fd4c5be9d2 # v1
2424
with:
2525
prefix: daft
@@ -28,6 +28,6 @@ jobs:
2828
branch: main
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
- run: cargo release publish --publish --execute --no-confirm --workspace
31+
- run: just ci-cargo-release
3232
env:
3333
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Justfile

+8
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ rustdoc *args:
2121
generate-readmes:
2222
# Please install via cargo install --locked --git https://github.com/sunshowers/cargo-sync-rdme for now.
2323
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

0 commit comments

Comments
 (0)