From 8dac464b6187e83027a6cdb11ddb7b3e3f49b12a Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Tue, 14 Feb 2023 23:18:47 +0800 Subject: [PATCH] chore: upload to release on git tag Or output artifact path on nightly (#993) --- .github/workflows/client-app.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/client-app.yml b/.github/workflows/client-app.yml index aa5d16a024..7ba9eb5914 100644 --- a/.github/workflows/client-app.yml +++ b/.github/workflows/client-app.yml @@ -93,6 +93,8 @@ jobs: key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Get rust cache + uses: Swatinem/rust-cache@v2 - name: Install dependencies run: pnpm i -r @@ -105,8 +107,18 @@ jobs: CI_PULL_REQUEST: ${{ github.event_name == 'pull_request' }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: tauri-apps/tauri-action@v0 + - name: Upload to release on git tag Or output artifact path on nightly + uses: tauri-apps/tauri-action@dev + id: tauri-action env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: releaseId: ${{ needs.create-release.outputs.RELEASE_UPLOAD_ID }} + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: tauri-client-app-artifact + path: | + ${{ fromJSON(steps.tauri-action.outputs.artifactPaths)[0] }} + ${{ fromJSON(steps.tauri-action.outputs.artifactPaths)[1] }} + ${{ fromJSON(steps.tauri-action.outputs.artifactPaths)[2] }}