From 957178c7eef74604a4a7b129aa558fc5afc56448 Mon Sep 17 00:00:00 2001 From: ThatXliner Date: Wed, 3 Apr 2024 17:58:16 -0700 Subject: [PATCH] :octocat: I finally fixed builds --- .github/workflows/release.yml | 80 +++++++++++++++-------------------- 1 file changed, 33 insertions(+), 47 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c6a84a..04748d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -57,7 +57,8 @@ jobs: run: pnpm install - name: Build the app run: pnpm tauri build - - name: Upload files to a GitHub release + - name: (.dmg) Upload files to a GitHub release + if: matrix.os == 'macos-latest' uses: svenstaro/upload-release-action@2.9.0 continue-on-error: true env: @@ -65,49 +66,34 @@ jobs: with: file_glob: true tag: ${{ github.ref }} - file: | - src-tauri/target/release/bundle/*/*.dmg - src-tauri/target/release/bundle/*/*.app - src-tauri/target/release/bundle/*/*.AppImage - src-tauri/target/release/bundle/*/*.deb - src-tauri/target/release/bundle/*/*.msi - # - name: (.dmg) Upload files to a GitHub release - # if: matrix.os == 'macos-latest' - # uses: svenstaro/upload-release-action@2.9.0 - # continue-on-error: true - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # file_glob: true - # tag: ${{ github.ref }} - # file: src-tauri/target/release/bundle/*/*.dmg - # - name: (.msi) Upload files to a GitHub release - # if: matrix.os == 'windows-latest' - # uses: svenstaro/upload-release-action@2.9.0 - # continue-on-error: true - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # file_glob: true - # tag: ${{ github.ref }} - # file: src-tauri/target/release/bundle/*/*.msi - # - name: (.deb) Upload files to a GitHub release - # if: matrix.os == 'ubuntu-latest' - # uses: svenstaro/upload-release-action@2.9.0 - # continue-on-error: true - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # file_glob: true - # tag: ${{ github.ref }} - # file: src-tauri/target/release/bundle/*/*.deb - # - name: (.AppImage) Upload files to a GitHub release - # if: matrix.os == 'ubuntu-latest' - # uses: svenstaro/upload-release-action@2.9.0 - # continue-on-error: true - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # file_glob: true - # tag: ${{ github.ref }} - # file: src-tauri/target/release/bundle/*/*.AppImage + file: src-tauri/target/release/bundle/*/*.dmg + - name: (.msi) Upload files to a GitHub release + if: matrix.os == 'windows-latest' + uses: svenstaro/upload-release-action@2.9.0 + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + file_glob: true + tag: ${{ github.ref }} + file: src-tauri/target/release/bundle/*/*.msi + - name: (.deb) Upload files to a GitHub release + if: matrix.os == 'ubuntu-latest' + uses: svenstaro/upload-release-action@2.9.0 + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + file_glob: true + tag: ${{ github.ref }} + file: src-tauri/target/release/bundle/*/*.deb + - name: (.AppImage) Upload files to a GitHub release + if: matrix.os == 'ubuntu-latest' + uses: svenstaro/upload-release-action@2.9.0 + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + file_glob: true + tag: ${{ github.ref }} + file: src-tauri/target/release/bundle/*/*.AppImage