From 88f753f38df3d761f1d8f37971dbb7b469165388 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Sun, 4 Feb 2024 15:19:11 +0200 Subject: [PATCH] update workflows --- .github/workflows/deploy_linux.yaml | 19 ++++++++++--------- .github/workflows/deploy_macos.yaml | 21 +++++++++++++-------- .github/workflows/deploy_universal_mac.yaml | 5 ++++- 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy_linux.yaml b/.github/workflows/deploy_linux.yaml index 8e16b007..c66b60b4 100644 --- a/.github/workflows/deploy_linux.yaml +++ b/.github/workflows/deploy_linux.yaml @@ -53,13 +53,14 @@ jobs: run: npm install # Change this to npm, yarn or pnpm. working-directory: ./desktop - - name: Install tauri-cli - run: cargo install tauri-cli - - - name: Install build dependencies - run: pip3 install -r scripts/release/requirements.txt - - - name: Build and upload - run: python3 scripts/release/release.py + # Build and upload + - name: Build and Upload + uses: tauri-apps/tauri-action@v0 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version + releaseName: "v__VERSION__" + releaseBody: "See the assets to download this version and install." + releaseDraft: true + prerelease: false diff --git a/.github/workflows/deploy_macos.yaml b/.github/workflows/deploy_macos.yaml index 5ced5ef7..a34b4eda 100644 --- a/.github/workflows/deploy_macos.yaml +++ b/.github/workflows/deploy_macos.yaml @@ -63,13 +63,18 @@ jobs: run: npm install # Change this to npm, yarn or pnpm. working-directory: ./desktop - - name: Install tauri-cli - run: cargo install tauri-cli + # Setup OpenBlas and FFMPEG + - name: Setup FFMPEG and OpenBlas + run: ./scripts/pre_build.sh - - name: Install build dependencies - run: pip3 install -r scripts/release/requirements.txt - - - name: Build and upload - run: python3 scripts/release/release.py + # Build and upload + - name: Build and Upload + uses: tauri-apps/tauri-action@v0 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version + releaseName: "v__VERSION__" + releaseBody: "See the assets to download this version and install." + releaseDraft: true + prerelease: false diff --git a/.github/workflows/deploy_universal_mac.yaml b/.github/workflows/deploy_universal_mac.yaml index df82b82c..42b694c7 100644 --- a/.github/workflows/deploy_universal_mac.yaml +++ b/.github/workflows/deploy_universal_mac.yaml @@ -61,10 +61,13 @@ jobs: run: npm install # Change this to npm, yarn or pnpm. working-directory: ./desktop + # Setup OpenBlas and FFMPEG - name: Setup FFMPEG and OpenBlas run: ./scripts/pre_build.sh - - uses: tauri-apps/tauri-action@v0 + # Build and upload + - name: Build and Upload + uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: