Merge pull request #19919 from ShoyuVanilla/patch-1

ci: When autopublishing, remove `xtask` from workspace
This commit is contained in:
Laurențiu Nicola 2025-06-04 05:29:49 +00:00 committed by GitHub
commit 8f5d007917
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -22,7 +22,7 @@ jobs:
run: rustup update --no-self-update stable
- name: Install cargo-workspaces
run: cargo install cargo-workspaces --version "0.3.6"
run: cargo install cargo-workspaces
- name: Publish Crates
env: