Bump build number #815
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android Beta Deployment | |
on: | |
push: | |
branches: | |
- "release/**" | |
- "hotfix/**" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
files-changed: | |
name: Detect changes | |
uses: ./.github/workflows/detect_changed_files_reusable_workflow.yml | |
with: | |
base: ${{ github.ref }} | |
# Run Gradle Wrapper Validation Action to verify the wrapper's checksum | |
gradle-wrapper-validation: | |
needs: files-changed | |
if: ${{ needs.files-changed.outputs.android == 'true' || needs.files-changed.outputs.shared == 'true' }} | |
name: Gradle Wrapper Validation | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Gradle Wrapper Validation | |
uses: gradle/actions/wrapper-validation@v4 | |
# Build and submit to the Firebase App Distribution | |
firebase-deployment: | |
name: Deploy to Firebase App Distribution | |
needs: gradle-wrapper-validation | |
uses: ./.github/workflows/android_deploy_to_firebase.yml | |
secrets: inherit | |
# Build and submit to the Google Play | |
google-play-deployment: | |
name: Deploy to Google Play | |
needs: gradle-wrapper-validation | |
runs-on: ubuntu-22.04 | |
environment: android_production | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup CI | |
id: setup | |
uses: ./.github/actions/setup-android | |
with: | |
setup-ruby: true | |
git-crypt-key: ${{ secrets.GIT_CRYPT_KEY }} | |
release-keystore-content: ${{ secrets.HYPERSKILL_RELEASE_KEYSTORE_CONTENT }} | |
service-account-content: ${{ secrets.SERVICE_ACCOUNT_CONTENT }} | |
- name: Submit a new Release Build to the Google Play | |
working-directory: "./androidHyperskillApp" | |
run: | | |
bundle exec fastlane release \ | |
json_key:"${{ steps.setup.outputs.service-account-path }}" \ | |
track:"internal" | |
env: | |
IS_GIT_CRYPT_UNLOCKED: ${{ steps.setup.outputs.is-git-crypt-unlocked }} | |
HYPERSKILL_KEYSTORE_PATH: ${{ steps.setup.outputs.release-keystore-path }} | |
HYPERSKILL_RELEASE_STORE_PASSWORD: ${{ secrets.HYPERSKILL_RELEASE_STORE_PASSWORD }} | |
HYPERSKILL_RELEASE_KEY_ALIAS: ${{ secrets.HYPERSKILL_RELEASE_KEY_ALIAS }} | |
HYPERSKILL_RELEASE_KEY_PASSWORD: ${{ secrets.HYPERSKILL_RELEASE_KEY_PASSWORD }} | |
GITHUB_USER: ${{ github.actor }} | |
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} |