3 workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
6 # - cron: "0 0 * * *" # midnight UTC
15 runs-on: ubuntu-latest
17 - name: Checkout repository
18 uses: actions/checkout@v2
22 - name: Install Rust toolchain
23 uses: actions-rs/toolchain@v1
29 - name: Install cargo-workspaces
30 uses: actions-rs/install@v0.1
32 crate: cargo-workspaces
36 CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
37 PATCH: ${{ github.run_number }}
40 git config --global user.email "runner@gha.local"
41 git config --global user.name "Github Action"
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