File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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'
You can’t perform that action at this time.
0 commit comments