mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 01:51:57 +03:00
cache rust deps when publishing
This commit is contained in:
parent
9126a72e66
commit
d60d859383
12
.github/workflows/publish.yaml
vendored
12
.github/workflows/publish.yaml
vendored
@ -41,6 +41,18 @@ jobs:
|
|||||||
- name: Setup rust
|
- name: Setup rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Cache rust dependencies
|
||||||
|
uses: actions/cache@v3
|
||||||
|
working-directory: src-tauri
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
src-tauri/target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Set env variable with version
|
- name: Set env variable with version
|
||||||
run: |
|
run: |
|
||||||
CURRENT_VERSION="$(curl --silent "https://app.gitbutler.com/releases" | jq -r '.version')"
|
CURRENT_VERSION="$(curl --silent "https://app.gitbutler.com/releases" | jq -r '.version')"
|
||||||
|
Loading…
Reference in New Issue
Block a user