From 465c7035c0d971ba91ea4af239c44989ffb054b9 Mon Sep 17 00:00:00 2001 From: qhy040404 Date: Tue, 20 Feb 2024 10:31:23 +0800 Subject: [PATCH] Update alpha.yml --- .github/workflows/alpha.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 88b26f48..682e5245 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -13,6 +13,17 @@ on: - '**.md' - 'LICENSE' - '**.yml' + pull_request: + branches: + - develop + paths-ignore: + - '.gitattributes' + - '.github/**' + - '.gitignore' + - '.gitmodules' + - '**.md' + - 'LICENSE' + - '**.yml' jobs: build: @@ -34,20 +45,21 @@ jobs: VERSION_API_TOKEN: ${{ secrets.VERSION_API_TOKEN }} - name: Sign Msix + if: success() && github.event_name != 'pull_request' shell: pwsh run: | [System.Convert]::FromBase64String("${{ secrets.CERTIFICATE }}") | Set-Content -AsByteStream temp.pfx signtool.exe sign /debug /v /a /fd SHA256 /f temp.pfx /p ${{ secrets.PW }} ${{ github.workspace }}\src\output\Snap.Hutao.Alpha-${{ steps.cake.outputs.version }}.msix - name: Upload signed msix - if: success() + if: success() && github.event_name != 'pull_request' uses: actions/upload-artifact@v4 with: name: Snap.Hutao.Alpha-${{ steps.cake.outputs.version }} path: ${{ github.workspace }}/src/output/Snap.Hutao.Alpha-${{ steps.cake.outputs.version }}.msix - name: Add summary - if: success() + if: success() && github.event_name != 'pull_request' shell: pwsh run: | $summary = "