Skip to content

Commit

Permalink
Configured the deploy step for AndroidInternal track for main and rel…
Browse files Browse the repository at this point in the history
…ease
  • Loading branch information
rafaelwaterkemper committed Aug 15, 2022
1 parent 065d73c commit 8b7f67c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/mobile-build-on-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
echo BUILDID=$(ionic-cloud build android release
--app-id=${{ secrets.IONIC_APP_ID }}
--signing-cert=AndroidProdCertificate
--env CURRENT_VERSION_ANDROID=${{ secrets.CURRENT_VERSION_ANDROID }}
--env CURRENT_VERSION_ANDROID=${{ secrets.CURRENT_VERSION_ANDROID }}
--commit=${{ github.sha }} --apk --apk-name=ishihara-latest.apk --json | jq -r '.buildId') >> $GITHUB_ENV
- name: Send APK to Ishihara Group
Expand All @@ -30,6 +30,13 @@ jobs:
-F channels=${{ secrets.SLACK_CHANNEL_ID }}
-H "Authorization: Bearer ${{ secrets.SLACK_BOT_TOKEN }}"
- name: Trigger deploy Android Internal
run: >
ionic-cloud deploy android
--app-id=${{ secrets.IONIC_APP_ID }}
--build-id=${{ env.BUILDID }}
--destination="AndroidInternal"
build-ios:
name: Build iOS
runs-on: ubuntu-latest
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/mobile-build-on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,25 @@ jobs:

- name: Trigger build Android
run: >
echo BUILDID=$(ionic-cloud build android debug
echo BUILDID=$(ionic-cloud build android release
--app-id=${{ secrets.IONIC_APP_ID }}
--env CURRENT_VERSION_ANDROID=${{ secrets.CURRENT_VERSION_ANDROID }}
--commit=${{ github.sha }} --json | jq -r '.buildId') >> $GITHUB_ENV
--signing-cert=AndroidProdCertificate
--env CURRENT_VERSION_ANDROID=${{ secrets.CURRENT_VERSION_ANDROID }}
--commit=${{ github.sha }} --apk --apk-name=ishihara-latest.apk --json | jq -r '.buildId') >> $GITHUB_ENV
- name:
run: gh auth login --with-token <<< ${{ secrets.TOKEN_UPDATE_SECRET }}

- name: gh set secret
run: gh secret set CURRENT_VERSION_ANDROID --body ${{ github.ref_name }}

- name: Trigger deploy Android Internal
run: >
ionic-cloud deploy android
--app-id=${{ secrets.IONIC_APP_ID }}
--build-id=${{ env.BUILDID }}
--destination="AndroidInternal"
build-ios:
name: Build iOS
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stencil-starter-project-name",
"private": true,
"version": "0.0.1",
"version": "1.0.0",
"description": "stencil-starter-project-name",
"license": "MIT",
"files": [
Expand Down

0 comments on commit 8b7f67c

Please sign in to comment.