From f8af775a7ba74f8090a2bea03515ca26ba8e9b2d Mon Sep 17 00:00:00 2001
From: Sanlorng <fujia625@gmail.com>
Date: Wed, 6 Nov 2024 17:17:44 +0800
Subject: [PATCH] Update github_snapshot_build.yml

---
 .github/workflows/github_snapshot_build.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/github_snapshot_build.yml b/.github/workflows/github_snapshot_build.yml
index 9410d9f5..c8ce2b85 100644
--- a/.github/workflows/github_snapshot_build.yml
+++ b/.github/workflows/github_snapshot_build.yml
@@ -69,7 +69,7 @@ jobs:
 
       # Publish Snapshot Library
       - name: Publish Library
-        if: ${{ contains(matrix.*,'publish') && github.event_name == 'push' }}
+        if: ${{ github.event_name == 'push' && contains(matrix.*,'publish') }}
         run: |
           ./gradlew publishToMavenLocal
           ./gradlew publish
@@ -81,7 +81,7 @@ jobs:
           SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
 
       - name: Upload Library Artifact
-        if: ${{ contains(matrix.*,'publish') && github.event_name == 'push' }}
+        if: ${{ github.event_name == 'push' && contains(matrix.*,'publish') }}
         uses: actions/upload-artifact@v4
         with:
           name: Repository-${{ github.run_id }}