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 = "