-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
43 lines (35 loc) · 1.17 KB
/
azure-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
33
34
35
36
37
38
39
40
41
42
43
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
pool:
vmImage: 'macOS-latest'
steps:
# Download secure file
# Download a secure file to the agent machine
- task: DownloadSecureFile@1
name: mySecureFile # The name with which to reference the secure file's path on the agent, like $(mySecureFile.secureFilePath)
inputs:
secureFile: apikey.properties # The file name or GUID of the secure file
#retryCount: 5 # Optional
# - task: CopyFiles@2
# inputs:
# contents: '$(mySecureFile.secureFilePath)'
# targetFolder: $(Agent.BuildDirectory)
- script: |
cp $(mySecureFile.secureFilePath) $(Build.SourcesDirectory)
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: true
testResultsFiles: '**/testDebugUnitTest/TEST-*.xml'
tasks: 'build'
- task: CopyFiles@2
inputs:
contents: '**/*.apk'
targetFolder: '$(build.artifactStagingDirectory)'
- task: PublishBuildArtifacts@1
- task: GitHubRelease@0
displayName: 'GitHub release (create)'
inputs:
gitHubConnection: github/ratanparai
assets: '$(build.artifactStagingDirectory)/**/*.apk'