Răsfoiți Sursa

Generate aab's only for builds on master branch

Ivan Savenko 1 an în urmă
părinte
comite
0e1d5274ba
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      .github/workflows/github.yml

+ 2 - 2
.github/workflows/github.yml

@@ -282,7 +282,7 @@ jobs:
         echo "ANDROID_AAB_PATH=$ANDROID_AAB_PATH" >> $GITHUB_ENV
 
     - name: Android apk artifacts
-      if: ${{ startsWith(matrix.platform, 'android') }}
+      if: ${{ startsWith(matrix.platform, 'android')  }}
       uses: actions/upload-artifact@v4
       with:
         name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }}
@@ -290,7 +290,7 @@ jobs:
           ${{ env.ANDROID_APK_PATH }}
 
     - name: Android aab artifacts
-      if: ${{ startsWith(matrix.platform, 'android') }}
+      if: ${{ startsWith(matrix.platform, 'android') && github.ref == 'refs/heads/master' }}
       uses: actions/upload-artifact@v4
       with:
         name: ${{ env.VCMI_PACKAGE_FILE_NAME }} - ${{ matrix.platform }} - aab