From fc4cc294cb64e953cc05ea7c3880c3f1ddaa738a Mon Sep 17 00:00:00 2001 From: Wk Date: Mon, 18 Nov 2024 00:59:36 +0100 Subject: [PATCH] ci: release --- .github/workflows/on-relese.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/on-relese.yaml b/.github/workflows/on-relese.yaml index eeca553..9cf3f4d 100644 --- a/.github/workflows/on-relese.yaml +++ b/.github/workflows/on-relese.yaml @@ -5,9 +5,6 @@ on: branches: - release -env: - TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} - # This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release. jobs: @@ -53,12 +50,23 @@ jobs: # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2. # You can remove the one that doesn't apply to your app to speed up the workflow a bit. + + - name: setup cache + uses: actions/cache@v4 + with: + key: ${{ runner.os }}-tauri-${{ hashFiles('src-tauri/Cargo.lock') }} + path: | + ~/.cargo + src-tauri/target + - name: install frontend dependencies run: pnpm install # change this to npm, pnpm or bun depending on which one you use. - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} with: tagName: __VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. releaseName: '__VERSION__'