fork/rust-analyzer
git clone https://git.julia.blue/fork/rust-analyzer
3eb8b28ce5
2022-06-20
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 23uses : actions-rs/toolchain@v1 24with : 25toolchain : stable 26profile : minimal 27override : true 28 29- name : Install cargo-workspaces 30uses : actions-rs/install@v0.1 31with : 32crate : cargo-workspaces 33 34- name : Release 35env : 36CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }} 37PATCH : ${{ github.run_number }} 38shell : bash 39run : | 40 git config --global user.email "runner@gha.local" 41 git config --global user.name "Github Action" 42 rm Cargo.lock 43 cargo workspaces rename ra_ap_%n 44 find crates/rust-analyzer -type f -name '*.rs' -exec sed -i 's/rust_analyzer/ra_ap_rust_analyzer/g' {} + 45 cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH