-
Notifications
You must be signed in to change notification settings - Fork 54
41 lines (35 loc) · 1.34 KB
/
nightly-debug-builds.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
on:
schedule:
- cron: '30 23 * * 1,2,3,4,5'
workflow_dispatch:
name: Distribute nightly debug build
jobs:
setup-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: 17
- name: Setup middleware dependency
env:
token_secret: ${{ secrets.ANYTYPE_SECRET }}
user_secret: ${{ secrets.ANYTYPE_USER_SECRET }}
amplitude_secret: ${{ secrets.ANYTYPE_AMPLITUDE_SECRET }}
amplitude_secret_debug: ${{ secrets.ANYTYPE_AMPLITUDE_DEBUG_SECRET }}
sentry_dsn_secret: ${{ secrets.ANYTYPE_SENTRY_DSN_SECRET }}
run: ./middleware2.sh $token_secret $user_secret $amplitude_secret $amplitude_secret_debug $sentry_dsn_secret
- name: Enable dated version for nightly debug builds
run: make enable_dated_version_name
- name: Enable analytics for nightly debug builds
run: make enable_analytics_for_debug
- name: Decrypt secrets
run: ./scripts/distribution/decrypt-secrets.sh
env:
ENCRYPT_KEY: ${{ secrets.ENCRYPT_KEY_FIREBASE_DISTRIBUTION }}
- name: Distribute debug build
run: make distribute_debug
- name: Clean secrets
if: always()
run: ./scripts/distribution/clean-secrets.sh