mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-23 17:43:47 +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
|
||||
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
|
||||
run: |
|
||||
CURRENT_VERSION="$(curl --silent "https://app.gitbutler.com/releases" | jq -r '.version')"
|
||||
|
Loading…
Reference in New Issue
Block a user