-
Notifications
You must be signed in to change notification settings - Fork 73
74 lines (61 loc) · 2.27 KB
/
build_sandbox.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Build sandbox app bundle
on:
workflow_dispatch:
inputs:
tramline-input:
description: "Tramline input"
required: false
jobs:
build:
runs-on: [ ubuntu-latest ]
env:
TERM: dumb
ORG_GRADLE_PROJECT_KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
ORG_GRADLE_PROJECT_KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
ORG_GRADLE_PROJECT_KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
steps:
- name: Configure Tramline
id: tramline
uses: tramlinehq/[email protected]
with:
input: ${{ github.event.inputs.tramline-input }}
- name: Setup version code and name
id: version_code_and_name
run: |
VERSION_NAME=${{ steps.tramline.outputs.version_name }}
VERSION_CODE=${{ steps.tramline.outputs.version_code }}
echo "ORG_GRADLE_PROJECT_VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
echo "ORG_GRADLE_PROJECT_VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: zulu
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Decrypt secrets
run: gpg --batch --yes --quiet --decrypt --passphrase=${{ secrets.KEYSTORE_PASSPHRASE }} --output release/simple.store release/simple.gpg
- name: Build release bundle
run: |
./gradlew
-PrunProguard=true
-PmanifestEndpoint=$MANIFEST_ENDPOINT_SANDBOX
-PandroidNdkVersion=$NDK_VERSION
-PsentryDsn=${{ secrets.SENTRY_DSN }}
-PsentryEnvironment=sandbox
-PdatadogApplicationId=${{ secrets.DATADOG_APPLICATION_ID }}
-PdatadogClientToken=${{ secrets.DATADOG_CLIENT_TOKEN }}
-PdatadogEnvironment=sandbox
-PsentryOrg=$SENTRY_ORG
-PsentryProject=$SENTRY_PROJECT
-PsentryAuthToken=${{ secrets.SENTRY_AUTH_TOKEN }}
bundleSandboxRelease
- name: Upload release bundle
uses: actions/upload-artifact@v4
with:
name: release.aab
path: app/build/outputs/bundle/sandboxRelease/app-sandbox-release.aab
- name: Clean secrets
run: |
rm -f release/simple.store