fork/rust-analyzer
git clone https://git.julia.blue/fork/rust-analyzer
af2b806c1c
master
1name : publish 2on : 3workflow_dispatch : # We can add version input when 1.0 is released and scheduled releases are removed 4 5# schedule: 6# - cron: "0 0 * * *" # midnight UTC 7 8push : 9branches : 10- release 11 12jobs : 13publish : 14name : publish 15runs-on : ubuntu-latest 16steps : 17- name : Checkout repository 18uses : actions/checkout@v3 19with : 20fetch-depth : 0 21 22- name : Install Rust toolchain 23run : rustup update --no-self-update stable 24 25- name : Install cargo-workspaces 26run : cargo install cargo-workspaces 27 28- name : Release 29env : 30CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }} 31PATCH : ${{ github.run_number }} 32shell : bash 33run : | 34 git config --global user.email "runner@gha.local" 35 git config --global user.name "Github Action" 36 rm Cargo.lock 37 # Fix names for crates that were published before switch to kebab-case. 38 cargo workspaces rename --from base-db base_db 39 cargo workspaces rename --from hir-def hir_def 40 cargo workspaces rename --from hir-expand hir_expand 41 cargo workspaces rename --from hir-ty hir_ty 42 cargo workspaces rename --from ide-assists ide_assists 43 cargo workspaces rename --from ide-completion ide_completion 44 cargo workspaces rename --from ide-db ide_db 45 cargo workspaces rename --from ide-diagnostics ide_diagnostics 46 cargo workspaces rename --from ide-ssr ide_ssr 47 cargo workspaces rename --from proc-macro-api proc_macro_api 48 cargo workspaces rename --from proc-macro-srv proc_macro_srv 49 cargo workspaces rename --from project-model project_model 50 cargo workspaces rename --from test-utils test_utils 51 cargo workspaces rename --from text-edit text_edit 52 cargo workspaces rename ra_ap_%n 53 find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} + 54 cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH