Skip to content

Commit 43cb3e5

Browse files
committed
1 parent ae9507d commit 43cb3e5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

azure-pipelines-android.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# https://techcommunity.microsoft.com/t5/windows-dev-appconsult/using-azure-devops-to-create-a-ci-cd-pipeline-for-an-android/ba-p/1094422
2+
# Based on: https://github.com/staff0rd/react-native-pipeline/blob/master/azure-pipelines-android.yml
3+
4+
trigger:
5+
- main
6+
7+
pool:
8+
vmImage: 'ubuntu-latest'
9+
10+
steps:
11+
- task: NodeTool@0
12+
displayName: 'Install Node'
13+
inputs:
14+
versionSpec: '14.15.0'
15+
16+
- script: npx envinfo
17+
18+
- script: yarn install
19+
displayName: 'Install node dependencies'
20+
21+
- task: Gradle@2
22+
inputs:
23+
workingDirectory: 'android'
24+
gradleWrapperFile: 'android/gradlew'
25+
gradleOptions: '-Xmx3072m'
26+
tasks: 'bundleRelease assembleRelease'
27+
28+
- task: PublishBuildArtifacts@1
29+
inputs:
30+
pathtoPublish: android/app/build/outputs/apk/release/app-release.apk
31+
artifactName: drop
32+
publishLocation: 'container'
33+
34+
- task: PublishBuildArtifacts@1
35+
inputs:
36+
pathtoPublish: android/app/build/outputs/bundle/release/app-release.aab
37+
artifactName: drop
38+
publishLocation: 'container'

0 commit comments

Comments
 (0)