From c21ba5946fca1b20f0368d5de02331a5a8223684 Mon Sep 17 00:00:00 2001 From: NaveenKumar Namachivayam Date: Thu, 23 Nov 2023 16:39:03 -0500 Subject: [PATCH] Fix: GH matrix Signed-off-by: NaveenKumar Namachivayam --- .github/workflows/release-workflow.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index 60b8399..9849d01 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -66,6 +66,7 @@ jobs: run: | python .\windows\setup.py bdist_msi mv dist dist-windows + if: matrix.os == 'windows' - name: Convert dist-intel to DMG run: | @@ -96,6 +97,7 @@ jobs: with: name: Hamster-windows-x86_64 path: dist-windows/Hamster-*.msi + if: matrix.os == 'windows' - name: GitHub Tag uses: mathieudutour/github-tag-action@v6.1 @@ -105,7 +107,7 @@ jobs: - name: Release Darwin uses: softprops/action-gh-release@v1 - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' && matrix.os == 'macos' && matrix.arch == 'ARM64' with: token: ${{ secrets.HAMSTER_APP_RELEASE_SECRET }} body: 'Release for commit ${{ github.sha }}' @@ -116,7 +118,7 @@ jobs: - name: Release Intel uses: softprops/action-gh-release@v1 - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' && matrix.os == 'macos' && matrix.arch == 'X64' with: token: ${{ secrets.HAMSTER_APP_RELEASE_SECRET }} body: 'Release for commit ${{ github.sha }}' @@ -127,7 +129,7 @@ jobs: - name: Release Windows uses: softprops/action-gh-release@v1 - if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' && matrix.os == 'windows' with: token: ${{ secrets.HAMSTER_APP_RELEASE_SECRET }} body: 'Release for commit ${{ github.sha }}'