-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.gitlab-ci.yml
49 lines (41 loc) · 1.15 KB
/
.gitlab-ci.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
variables:
ANDROID_COMPILE_SDK: "30"
ANDROID_BUILD_TOOLS: "30.0.3"
ANDROID_SDK_TOOLS: "6514223"
before_script:
- echo "sdk.dir=${ANDROID_HOME}" >> local.properties
- echo "ndk.dir=${ANDROID_NDK_HOME}" >> local.properties
- chmod +x ./gradlew
- export FIREBASE_TOKEN=1//0eFo0ughP5DHoCgYIARAAGA4SNwF-L9IrLGxik_P7gzRKrqk2eWqegoo0sxjtEZL1Y5AaYW_KYavsE2CJySv2aQb3Gl_KBOOTKy4
stages:
- deploy
- publish
deployDevelop:
only:
- /^1.9.\d+$/
stage: deploy
script:
- ./gradlew assembleDevelopmentDebug appDistributionUploadDevelopmentDebug
artifacts:
paths:
- nunchuk-app/build/outputs/
uatDevelop:
only:
refs:
- main
stage: deploy
script:
- ./gradlew assembleDevelopmentDebug appDistributionUploadDevelopmentDebug
artifacts:
paths:
- nunchuk-app/build/outputs/
publishProduction:
stage: publish
only:
refs:
- main
script:
- ./gradlew bundleProductionRelease appDistributionUploadProductionRelease --artifactType="AAB"
#Create checksum file: sha256sum * > SHA256SUMS
#Sign the checksum file: gpg --clearsign SHA256SUMS
#Attach the newly created file SHA256SUMS.asc to Github release