-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
32 lines (31 loc) · 1.13 KB
/
bitbucket-pipelines.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
image: alvrme/alpine-android:android-34-jdk17
pipelines:
branches:
master:
- step:
name: Deploy App
caches:
- gradle
script:
- yes | sdkmanager --licenses
- chmod +x ./gradlew
- "./gradlew -PBUILD_NUMBER=$BITBUCKET_BUILD_NUMBER bundleRelease"
- "./gradlew -PBUILD_NUMBER=$BITBUCKET_BUILD_NUMBER assembleRelease"
artifacts:
- app/build/outputs/**
- step:
name: Upload Files bundle
script:
- pipe: atlassian/bitbucket-upload-file:0.5.0
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
FILENAME: "app/build/outputs/bundle/release/app-release.aab"
- step:
name: Upload Files apk
script:
- pipe: atlassian/bitbucket-upload-file:0.5.0
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
FILENAME: "app/build/outputs/apk/release/app-release.apk"