From 8b7f67c4278f059a70da66c02fe3a4e67bf56aa7 Mon Sep 17 00:00:00 2001 From: Rafael Marangoni Waterkemper Date: Mon, 15 Aug 2022 10:43:49 -0300 Subject: [PATCH] Configured the deploy step for AndroidInternal track for main and release --- .github/workflows/mobile-build-on-main.yaml | 9 ++++++++- .github/workflows/mobile-build-on-release.yaml | 14 +++++++++++--- package.json | 2 +- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mobile-build-on-main.yaml b/.github/workflows/mobile-build-on-main.yaml index ca4ed3e..f68af74 100644 --- a/.github/workflows/mobile-build-on-main.yaml +++ b/.github/workflows/mobile-build-on-main.yaml @@ -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 @@ -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 diff --git a/.github/workflows/mobile-build-on-release.yaml b/.github/workflows/mobile-build-on-release.yaml index f82f37d..71e1150 100644 --- a/.github/workflows/mobile-build-on-release.yaml +++ b/.github/workflows/mobile-build-on-release.yaml @@ -20,10 +20,11 @@ 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 }} @@ -31,6 +32,13 @@ jobs: - 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 diff --git a/package.json b/package.json index 4d07039..f2ec7af 100644 --- a/package.json +++ b/package.json @@ -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": [