Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #17862 - lnicola:publish-libs-members, r=lnicola
Only keep lib/ in publish-libs Follow-up to #17860, see https://github.com/rust-lang/rust-analyzer/actions/runs/10350212090/job/28646162590.
bors 2024-08-12
parent 59c6eae · parent c875467 · commit a13f330
-rw-r--r--.github/workflows/publish-libs.yaml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/workflows/publish-libs.yaml b/.github/workflows/publish-libs.yaml
index 945cbf6767..f1533bf26e 100644
--- a/.github/workflows/publish-libs.yaml
+++ b/.github/workflows/publish-libs.yaml
@@ -30,7 +30,6 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
- # Remove r-a crates from the workspaces so we don't auto-publish them as well
- sed -i 's/"crates\/\*"//' ./Cargo.toml
- sed -i 's/"xtask\/"//' ./Cargo.toml
+ # Only publish the crates under lib/
+ sed -i 's|^members = .*$|members = ["lib/*"]|' Cargo.toml
cargo workspaces publish --yes --exact --from-git --no-git-commit --allow-dirty