about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-17 10:22:25 +0000
committerbors <bors@rust-lang.org>2022-10-17 10:22:25 +0000
commitf0797929e5a4137689044b325a815d4de3a27f1d (patch)
tree2fd8360648e8b28d283b04340dc30c2bd4005abe
parent40cbeb5b3d1ec37e8857844e43c75b6980f588e3 (diff)
parentf310d4cbb4ac792ecfe2bb680c869bb732e9e7af (diff)
downloadrust-f0797929e5a4137689044b325a815d4de3a27f1d.tar.gz
rust-f0797929e5a4137689044b325a815d4de3a27f1d.zip
Auto merge of #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
-rw-r--r--.github/workflows/publish.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index a4497f49e3c..73e62ab32c6 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -2,8 +2,8 @@ name: publish
 on:
   workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
 
-#   schedule:
-#     - cron: "0 0 * * *" # midnight UTC
+  #   schedule:
+  #     - cron: "0 0 * * *" # midnight UTC
 
   push:
     branches:
@@ -50,5 +50,7 @@ jobs:
           cargo workspaces rename --from test-utils test_utils
           cargo workspaces rename --from text-edit text_edit
           cargo workspaces rename ra_ap_%n
+          # Remove library crates from the workspaces so we don't auto-publish them as well
+          sed -i 's/ "lib\/\*",//' ./Cargo.toml
           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.$PATCH