mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Don't auto-publish lib crates
This commit is contained in:
parent
b16b0413dc
commit
f310d4cbb4
1 changed files with 4 additions and 2 deletions
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
@ -2,8 +2,8 @@ name: publish
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
|
workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
|
||||||
|
|
||||||
# schedule:
|
# schedule:
|
||||||
# - cron: "0 0 * * *" # midnight UTC
|
# - cron: "0 0 * * *" # midnight UTC
|
||||||
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -50,5 +50,7 @@ jobs:
|
||||||
cargo workspaces rename --from test-utils test_utils
|
cargo workspaces rename --from test-utils test_utils
|
||||||
cargo workspaces rename --from text-edit text_edit
|
cargo workspaces rename --from text-edit text_edit
|
||||||
cargo workspaces rename ra_ap_%n
|
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' {} +
|
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
|
cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue