CI: upload to firebase app distribution + run unittests on each commit #57
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: Release Builds | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ '*' ] # run on all pull requests | |
jobs: | |
prepare-all: | |
uses: ./.github/workflows/_prepare-all.yml | |
prepare-release: | |
uses: ./.github/workflows/_prepare-release.yml | |
secrets: | |
KEYSTORE_BASE_64: ${{ secrets.KEYSTORE_BASE_64 }} | |
build: | |
runs-on: macos-latest # use [ self-hosted, macOS ] to host on our own mac mini, which is twice as fast and cheaper than hosting on a github runner. See README for more info. | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare release | |
uses: ./.github/workflows/_prepare-release.yml | |
- name: Build Prod Release APK | |
env: | |
RELEASE_KEYSTORE_PASSWORD: ${{ secrets.RELEASE_KEYSTORE_PASSWORD }} | |
RELEASE_KEYSTORE_ALIAS: ${{ secrets.RELEASE_KEYSTORE_ALIAS }} | |
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }} | |
run: ./gradlew assembleProdRelease --stacktrace | |
- name: Upload Release APK to Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ github.event.repository.name }}-${{ github.run_number }}-prod-release-apk | |
path: | | |
${{ github.workspace }}/app/build/outputs/apk/prod/release/app-prod-release.apk |