-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.41 KB
/
main-push.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
name: Main - Push
on:
push:
paths-ignore:
- '.github/**'
- 'README.md'
branches: [ "main" ]
workflow_dispatch:
jobs:
upload:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK And Gradle
uses: ./.github/actions/setup-jdk-gradle
with:
cache-read-only: false
- name: Get Google Services Json
env:
CERTIFICATE_BASE64: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > app/google-services.json
- name: Get App Release Signing Key
env:
CERTIFICATE_BASE64: ${{ secrets.APP_RELEASE_SIGNING_KEY }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > app/pusher-notif-release-key.jks
- name: Get Firebase App Distribution Key
env:
CERTIFICATE_BASE64: ${{ secrets.FIREBASE_APP_DISTRIBUTION_KEY }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > app/main-firebase-app-distribution-admin-key.json
- name: Assemble Signed Release Apk
run: ./gradlew assembleRelease -PversionCode=${{ github.run_number }}
- name: Generate Release Notes From Last Commit
run: git log -1 > app/release-notes.txt
- name: Upload To Firebase App Distribution
run: ./gradlew appDistributionUploadRelease