-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (48 loc) · 1.85 KB
/
app-distribution-alpha.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: app-distribution-alpha
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- labeled
- unlabeled
jobs:
app-distribution-alpha:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'tokenator-update-tokens-'))
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up our JDK environment
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Set up signing configuration
uses: ./.github/actions/setup-signing
with:
keystore: ${{ secrets.SIGNING_KEYSTORE }}
store-password: ${{ secrets.SIGNING_STORE_PASSWORD }}
key-alias: ${{ secrets.SIGNING_KEY_ALIAS }}
key-password: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Decode Google service account
shell: bash
run: |
GOOGLE_SERVICE_ACCOUNT_FILE_PATH=${RUNNER_TEMP}/google-service-account.json
echo "GOOGLE_SERVICE_ACCOUNT_FILE_PATH=${GOOGLE_SERVICE_ACCOUNT_FILE_PATH}" >> $GITHUB_ENV
echo "${{ secrets.GOOGLE_SERVICE_ACCOUNT }}" | base64 -d > ${GOOGLE_SERVICE_ACCOUNT_FILE_PATH}
- name: Upload APK to Firebase App Distribution
uses: ./.github/actions/app-distribution
with:
append-git-sha-to-version-name: 'true'
variant: 'alphaRelease'
firebase-token: ${{ secrets.FIREBASE_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
group: 'ouds-android-alpha'
- name: Publish Firebase App Distribution QR code
run: ./gradlew publishAppDistributionQrCode -Pvariant=alphaRelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}