Ignore enabling trailing comma in git blame (#5443) #1028
This file contains hidden or 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: On Push | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
inputs: | |
beta: | |
description: "true if this is a beta release" | |
required: false | |
default: "false" | |
push: | |
branches: | |
- main | |
env: | |
SUPPLY_UPLOAD_MAX_RETRIES: 5 | |
jobs: | |
app_build: | |
name: Github, Firebase, and Sentry Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup-build-env | |
with: | |
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.2" | |
bundler-cache: true | |
- uses: ./.github/actions/create-release-number | |
name: Create Release Number | |
id: rel_number | |
- uses: ./.github/actions/inflate-secrets | |
name: Inflate Secrets | |
with: | |
keystore: ${{ secrets.ORIGINAL_KEYSTORE_FILE }} | |
google-services: ${{ secrets.GOOGLESERVICES }} | |
firebase-creds: ${{ secrets.FIREBASECREDS }} | |
playstore-creds: ${{ secrets.PLAYSTORECREDS }} | |
- uses: ./.github/actions/create-release-notes | |
name: Create Release Notes | |
with: | |
tag-name: ${{ steps.rel_number.outputs.version }} | |
gh-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: ./.github/actions/download-translations | |
name: Download Translations | |
with: | |
lokalise-project: ${{ secrets.LOKALISE_PROJECT }} | |
lokalise-token: ${{ secrets.LOKALISE_TOKEN }} | |
- name: Build Release | |
env: | |
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }} | |
KEYSTORE_ALIAS: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS }} | |
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS_PASSWORD }} | |
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
run: | | |
./gradlew :common:assemble :app:assembleRelease :wear:assembleRelease :automotive:assembleRelease | |
- name: Archive Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release-apks | |
path: ./**/*.apk | |
- name: Create Version File | |
if: github.event.inputs.beta == 'true' | |
shell: bash | |
env: | |
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} | |
run: | | |
echo $VERSION_CODE > ./app/build/outputs/version_code.txt | |
- name: Create Github Pre-Release | |
if: github.event.inputs.beta == 'true' | |
uses: softprops/[email protected] | |
with: | |
tag_name: ${{ steps.rel_number.outputs.version }} | |
body_path: ./app/build/outputs/changelogGithub | |
draft: false | |
prerelease: true | |
files: | | |
./app/build/outputs/apk/full/release/app-full-release.apk | |
./app/build/outputs/apk/minimal/release/app-minimal-release.apk | |
./app/build/outputs/version_code.txt | |
./wear/build/outputs/apk/release/wear-release.apk | |
./automotive/build/outputs/apk/full/release/automotive-full-release.apk | |
./automotive/build/outputs/apk/minimal/release/automotive-minimal-release.apk | |
- name: Deploy to Firebase | |
env: | |
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }} | |
KEYSTORE_ALIAS: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS }} | |
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_ALIAS_PASSWORD }} | |
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
run: ./gradlew appDistributionUploadFullRelease | |
- name: Prepare Amazon Listing | |
if: github.event.inputs.beta == 'true' | |
run: bundle exec fastlane prep_amazon | |
env: | |
AMAZON_APPSTORE_CLIENT_ID: ${{ secrets.AMAZON_APPSTORE_CLIENT_ID }} | |
AMAZON_APPSTORE_CLIENT_SECRET: ${{ secrets.AMAZON_APPSTORE_CLIENT_SECRET }} | |
AMAZON_APPSTORE_APP_ID: ${{ secrets.AMAZON_APPSTORE_APP_ID }} | |
- name: Upload Github Dependencies | |
uses: gradle/actions/dependency-submission@v4 | |
- name: Print `git status` | |
run: git status | |
play_publish: | |
name: Play Publish | |
runs-on: ubuntu-latest | |
concurrency: | |
group: playstore_deploy | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/setup-build-env | |
with: | |
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.2" | |
bundler-cache: true | |
- uses: ./.github/actions/create-release-number | |
name: Create Release Number | |
id: rel_number | |
- uses: ./.github/actions/inflate-secrets | |
name: Inflate Secrets | |
with: | |
keystore: ${{ secrets.UPLOAD_KEYSTORE_FILE }} | |
google-services: ${{ secrets.GOOGLESERVICES }} | |
firebase-creds: ${{ secrets.FIREBASECREDS }} | |
playstore-creds: ${{ secrets.PLAYSTORECREDS }} | |
- uses: ./.github/actions/create-release-notes | |
name: Create Release Notes | |
with: | |
tag-name: ${{ steps.rel_number.outputs.version }} | |
gh-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: ./.github/actions/download-translations | |
name: Download Translations | |
with: | |
lokalise-project: ${{ secrets.LOKALISE_PROJECT }} | |
lokalise-token: ${{ secrets.LOKALISE_TOKEN }} | |
- name: Build Release | |
env: | |
KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_FILE_PASSWORD }} | |
KEYSTORE_ALIAS: ${{ secrets.UPLOAD_KEYSTORE_ALIAS }} | |
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_ALIAS_PASSWORD }} | |
VERSION_CODE: ${{ steps.rel_number.outputs.version-code }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
run: | | |
./gradlew :common:assemble :app:bundleFullRelease :wear:bundleRelease :automotive:bundleFullRelease | |
- name: Archive Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: release-aabs | |
path: ./**/*.aab | |
- name: Deploy to Playstore Internal | |
run: bundle exec fastlane deploy_internal | |
- name: Promote Internal to Beta | |
if: github.event.inputs.beta == 'true' | |
run: bundle exec fastlane promote_to_beta |