-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block pre release upload on device test completion
- Loading branch information
1 parent
1cf88ef
commit 1b8fdfc
Showing
3 changed files
with
55 additions
and
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Pre-Release Upload | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
pre-release-upload: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: ./.github/workflows/device-tests.yml | ||
|
||
- name: Decode Keystore | ||
env: | ||
ENCODED_RELEASE_KEYSTORE: ${{ secrets.ENCODED_RELEASE_KEYSTORE }} | ||
run: echo $ENCODED_RELEASE_KEYSTORE | base64 -d > keystore | ||
|
||
- name: Build & Assemble Release APK | ||
env: | ||
VERSION_CODE: ${{ github.run_number }} | ||
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }} | ||
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }} | ||
run: | | ||
./gradlew assembleRelease | ||
- name: Install Firebase CLI | ||
run: npm install -g firebase-tools | ||
|
||
- name: Decode Firebase Service Account JSON | ||
run: echo ${{ secrets.FIREBASE_SERVICE_ACCOUNT_BASE_64 }} | base64 -d > service_account.json | ||
|
||
- name: Deploy to Firebase | ||
env: | ||
GOOGLE_APPLICATION_CREDENTIALS: service_account.json | ||
run: firebase appdistribution:distribute app/build/outputs/apk/release/app-release.apk --app ${{ secrets.FIREBASE_APP_ID }} --groups "internal" | ||
|
||
- name: Upload to Play Store | ||
uses: r0adkll/upload-google-play@v1 | ||
with: | ||
serviceAccountJsonPlainText: ${{ secrets.PLAY_STORE_CREDENTIALS }} | ||
packageName: com.willowtree.vocable | ||
releaseFiles: app/build/outputs/apk/release/app-release.apk | ||
track: alpha |