From 050e63b08c05207bafb86065856c3c1440dd6ac0 Mon Sep 17 00:00:00 2001 From: HarelM Date: Thu, 13 Jun 2024 15:19:02 +0300 Subject: [PATCH] Improve publishing options --- .github/workflows/build-publish.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 530e6ca42..bffc800e8 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -14,8 +14,12 @@ on: pull_request: workflow_dispatch: inputs: - publish: - description: 'Publish to Appstore and Google play' + publishandroid: + description: 'Publish to Google play' + required: false + default: 'false' + publishios: + description: 'Publish to App Store' required: false default: 'false' tag: @@ -103,7 +107,7 @@ jobs: path: IsraelHiking.Web/android/app/build/outputs/bundle/release/app-release.aab - name: Publish to Google Play - if: ${{ github.event.inputs.publish == 'true' }} + if: ${{ github.event.inputs.publishandroid == 'true' }} uses: r0adkll/upload-google-play@v1 with: serviceAccountJsonPlainText: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }} @@ -199,7 +203,7 @@ jobs: path: IsraelHiking.Web/ios/App.ipa - name: Publish to App Store - if: ${{ github.event.inputs.publish == 'true' }} + if: ${{ github.event.inputs.publishios == 'true' }} run: | cd IsraelHiking.Web/ios xcrun altool --upload-app --type ios --file ./App.ipa --username $APPLE_APPSTORE_USER --password $APPLE_APPSTORE_PASSWORD