From 83e91a4441a4cbf6935c05233e082f9e423cab08 Mon Sep 17 00:00:00 2001 From: Akirami <66513481+A-kirami@users.noreply.github.com> Date: Tue, 27 Feb 2024 19:22:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20=E6=9B=B4=E6=8D=A2=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E5=B7=A5=E4=BD=9C=E6=B5=81=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2022d56..5312af3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,5 @@ name: Build -permissions: - contents: write - on: push: branches: @@ -23,7 +20,7 @@ concurrency: cancel-in-progress: true jobs: - build-binaries: + build: strategy: fail-fast: false matrix: @@ -77,15 +74,18 @@ jobs: - name: Rustup add target run: rustup target add ${{ matrix.target }} - - uses: JonasKruckenberg/tauri-build@v1.4 - id: tauri_build + - name: Build the app + uses: tauri-apps/tauri-action@v0 + id: tauri-build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - target: ${{ matrix.target }} + args: -t ${{ matrix.target }} - - uses: benjlevesque/short-sha@v2.2 + - uses: benjlevesque/short-sha@v3.0 id: short-sha - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: 'matcha-${{ matrix.label }}-${{ steps.short-sha.outputs.sha }}' - path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" + name: 'matcha_${{steps.tauri-build.outputs.appVersion}}_${{ matrix.label }}_${{ steps.short-sha.outputs.sha }}' + path: "${{ join(fromJSON(steps.tauri-build.outputs.artifactPaths), '\n') }}"