Skip to content

Use device tests reusable workflow as a job #2

Use device tests reusable workflow as a job

Use device tests reusable workflow as a job #2

name: Pre-Release Upload
on:
workflow_call:
jobs:
device-tests:
- uses: ./.github/workflows/device-tests.yml

Check failure on line 8 in .github/workflows/pre-release-upload.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pre-release-upload.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
pre-release-upload:
needs: device-tests
runs-on: ubuntu-20.04
steps:
- 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