Skip to content

Commit 4b5d321

Browse files
committed
ci: When autopublishing, remove xtask from workspace
Revert `cargo-workspaces` version fix
1 parent 9f18f54 commit 4b5d321

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/autopublish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
cargo workspaces rename --from project-model project_model
5555
cargo workspaces rename --from test-fixture test_fixture
5656
cargo workspaces rename --from test-utils test_utils
57-
# Remove library crates from the workspaces so we don't auto-publish them as well
58-
sed -i 's/ "lib\/\*",//' ./Cargo.toml
57+
# Remove library crates and xtask from the workspaces so we don't auto-publish them as well
58+
sed -i 's/"xtask\\/",//; s/ "lib\/\*",//' ./Cargo.toml
5959
cargo workspaces rename ra_ap_%n
6060
find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} +
6161
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$(($RUN_NUMBER + 133))

.github/workflows/publish-libs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: rustup update --no-self-update stable
2323

2424
- name: Install cargo-workspaces
25-
run: cargo install cargo-workspaces --version "0.3.6"
25+
run: cargo install cargo-workspaces
2626

2727
- name: Publish Crates
2828
env:

0 commit comments

Comments
 (0)