]> git.lizzy.rs Git - rust.git/commitdiff
Don't auto-publish lib crates
authorLukas Wirth <lukastw97@gmail.com>
Tue, 27 Sep 2022 16:22:06 +0000 (18:22 +0200)
committerLukas Wirth <lukastw97@gmail.com>
Tue, 27 Sep 2022 16:22:06 +0000 (18:22 +0200)
.github/workflows/publish.yml

index a4497f49e3c2f8c5193aea300b044251ec262463..73e62ab32c6c5d1f310e5cc5734a1496a8409b29 100644 (file)
@@ -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