Merge tag 'v1.2.3' into develop #13
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: Deploy Foss to github | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
## 2 | |
jobs: | |
## 3 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 1 | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 21 | |
# 2 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Accept Android licenses | |
run: yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --licenses || true | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
build-scan-publish: true | |
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" | |
build-scan-terms-of-use-agree: "yes" | |
- name: Remove Firebase References | |
run: | | |
sed -i -e '/androidx.dev/d' settings.gradle.kts | |
sed -i -e '/with(target) {/,/^ }/d' -e '/CrashlyticsExtension/d' build-logic/convention/src/main/kotlin/AndroidApplicationFirebaseConventionPlugin.kt | |
sed -i -e '/libs.firebase/d' build-logic/convention/build.gradle.kts | |
- name: Build release variant apk | |
run: ./gradlew assembleFossReliantRelease | |
- name: Sign APK | |
uses: r0adkll/sign-android-release@v1.0.4 | |
with: | |
releaseDirectory: app/build/outputs/apk/fossReliant/release | |
signingKeyBase64: ${{ secrets.SIGNING_KEY2 }} | |
alias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
env: | |
BUILD_TOOLS_VERSION: "34.0.0" | |
# 4 | |
- name: Draft Release | |
uses: ncipollo/release-action@v1.14.0 | |
with: | |
allowUpdates: true | |
artifacts: "app/build/outputs/apk/**/**/**/*.apk,app/build/outputs/mapping/**/**/*.txt" | |
token: ${{ secrets.TOKEN }} | |
generateReleaseNotes: true | |
bodyFile: distribution/whatsnew/whatsnew-en-US | |
prerelease: false |