-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (50 loc) · 1.68 KB
/
create_release.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
56
57
58
59
60
name: Create Release
on:
workflow_dispatch:
env:
VERSION: ${{ vars.VERSION }}
DESKTOP_VERSION: ${{ vars.DESKTOP_VERSION }}
VERSION_CODE: ${{ vars.VERSION_CODE }}
IS_DEBUG: ${{ vars.IS_DEBUG }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_ENVIRONMENT: ${{ vars.SENTRY_ENVIRONMENT }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
concurrency:
group: create-release-${{ github.ref }}
cancel-in-progress: true
jobs:
run-checks:
runs-on: macos-latest
environment: production
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Configure signing keys
env:
KEYSTORE: ${{ secrets.KEYSTORE }}
run: |
mkdir release;
echo $KEYSTORE | base64 -d > release/release.jks;
- name: Run DB Checks
run: |
./gradlew generateCommonMainNinjaDatabaseSchema;
./gradlew verifySqlDelightMigration;
- name: Build Release
run: ./gradlew :androidApp:bundleRelease :androidApp:assembleRelease
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Signed Builds
path: |
androidApp/build/outputs/bundle/release/androidApp-release.aab
androidApp/build/outputs/apk/release/androidApp-release.apk
androidApp/build/outputs/mapping/release/mapping.txt