-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix release flow with deploy key and caching
- Loading branch information
1 parent
1abd2ef
commit f38e138
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,27 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ssh-key: ${{ secrets.DEPLOY_KEY }} | ||
- name: Setup Cache | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('~/.cargo/bin/cargo-workspaces') }} | ||
- name: Install cargo-workspaces | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: cargo install cargo-workspaces | ||
- name: Bump rust crate versions, commit, and tag | ||
working-directory: wrappers/rust | ||
# https://github.com/pksunkara/cargo-workspaces?tab=readme-ov-file#version | ||
run: | | ||
cargo install cargo-workspaces | ||
git config user.name release-bot | ||
git config user.email [email protected] | ||
cargo workspaces version ${{ inputs.releaseType }} -y --no-individual-tags -m "Bump rust crates' version" | ||
- name: Create draft release | ||
env: | ||
|