-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure release signing for conference app (#1124)
- Loading branch information
Showing
11 changed files
with
183 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: Android Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
workflow_dispatch: | ||
inputs: | ||
log_level: | ||
type: choice | ||
description: Log Level | ||
required: false | ||
default: info | ||
options: | ||
- error | ||
- quiet | ||
- warning | ||
- lifecycle | ||
- info | ||
- debug | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: Assemble Release | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
pull-requests: 'write' | ||
id-token: 'write' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/actions/setup-cloud | ||
with: | ||
workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY }} | ||
service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_ID }} | ||
setup_gcloud: false | ||
|
||
- uses: ./.github/actions/setup-gradle | ||
|
||
- uses: 1password/load-secrets-action/configure@v2 | ||
with: | ||
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | ||
|
||
- id: op-secrets | ||
uses: 1password/load-secrets-action@v2 | ||
with: | ||
export-env: false | ||
env: | ||
GOOGLE_SERVICES: op://development/google services/playground release/base64 | ||
KEYSTORE_BASE64: op://development/playground keystore/keystore base64 | ||
KEYSTORE_PASSWORD: op://development/playground keystore/keystore password | ||
KEY_ALIAS: op://development/playground keystore/key alias | ||
KEY_PASSWORD: op://development/playground keystore/key password | ||
|
||
- env: | ||
GOOGLE_SERVICES: ${{ steps.op-secrets.outputs.GOOGLE_SERVICES }} | ||
KEYSTORE_BASE64: ${{ steps.op-secrets.outputs.KEYSTORE_BASE64 }} | ||
run: | | ||
echo $GOOGLE_SERVICES | base64 --decode > app-launcher/android/google-services.json | ||
echo $GOOGLE_SERVICES | base64 --decode > conferences-app/google-services.json | ||
echo $KEYSTORE_BASE64 | base64 --decode > keystore.jks | ||
- id: gradle | ||
env: | ||
ANDROID_API_KEY: ${{ secrets.ANDROID_API_KEY }} | ||
BROWSER_API_KEY: ${{ secrets.BROWSER_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
KEY_STORE_FILE: keystore.jks | ||
KEY_STORE_PASSWORD: ${{ steps.op-secrets.outputs.KEYSTORE_PASSWORD }} | ||
RELEASE_KEY_ALIAS: ${{ steps.op-secrets.outputs.KEY_ALIAS }} | ||
RELEASE_KEY_PASSWORD: ${{ steps.op-secrets.outputs.KEY_PASSWORD }} | ||
SERVER_CLIENT_ID: ${{ secrets.SERVER_CLIENT_ID }} | ||
run: ./gradlew assembleRelease --console=plain | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
if-no-files-found: error | ||
name: apk-release | ||
path: "**/*-release.apk" |
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
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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-dontwarn org.slf4j.impl.StaticLoggerBinder |
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
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
Empty file.