Skip to content

Commit f079792

Browse files
committed
Auto merge of rust-lang#13302 - Veykril:auto-publish, r=Veykril
Don't auto-publish lib crates I believe this should *just* work? With this cargo-workspaces should not consider them
2 parents 40cbeb5 + f310d4c commit f079792

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: publish
22
on:
33
workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
44

5-
# schedule:
6-
# - cron: "0 0 * * *" # midnight UTC
5+
# schedule:
6+
# - cron: "0 0 * * *" # midnight UTC
77

88
push:
99
branches:
@@ -50,5 +50,7 @@ jobs:
5050
cargo workspaces rename --from test-utils test_utils
5151
cargo workspaces rename --from text-edit text_edit
5252
cargo workspaces rename ra_ap_%n
53+
# Remove library crates from the workspaces so we don't auto-publish them as well
54+
sed -i 's/ "lib\/\*",//' ./Cargo.toml
5355
find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} +
5456
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH

0 commit comments

Comments
 (0)