From fa219d9c95a2233b8b01878ea861155fa806991a Mon Sep 17 00:00:00 2001 From: Jeremy Felder Date: Sun, 10 Mar 2024 08:57:35 +0200 Subject: [PATCH] Fix release flow with deploy key and caching (#425) ## Describe the changes This PR fixes the release flow action --- .github/workflows/release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f8ebd69..af8f024b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 release-bot@ingonyama.com cargo workspaces version ${{ inputs.releaseType }} -y --no-individual-tags -m "Bump rust crates' version" - name: Create draft release env: