Skip to content

Commit

Permalink
Improve publishing options
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Jun 13, 2024
1 parent 8db243e commit 050e63b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 050e63b

Please sign in to comment.