-
Notifications
You must be signed in to change notification settings - Fork 535
/
azure-maven-publish.yml
50 lines (48 loc) · 1.71 KB
/
azure-maven-publish.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
pr: none
jobs:
- job: Build
pool:
vmImage: ubuntu-latest
variables:
- name: BUILDSECMON_OPT_IN
value: true
steps:
- task: Bash@3
displayName: "Base64 decodes and pipes the GPG key content into the secret file"
env:
GPG_KEY_CONTENT: $(gpgContent)
SIGNING_SECRET_KEY_RING_FILE: $(gpgSecretFilePath)
inputs:
targetType: "inline"
script: |
# Write your commands here
sudo bash -c "echo '$GPG_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
ls
- task: Gradle@3
inputs:
gradleWrapperFile: "android/gradlew"
workingDirectory: 'android'
tasks: "assembleRelease"
options: "-PversionName=$(VERSION_NAME)"
publishJUnitResults: false
javaHomeOption: "JDKVersion"
jdkVersionOption: "$(jdkVersion)"
sonarQubeRunAnalysis: false
spotBugsAnalysis: false
- task: Gradle@2
displayName: Gradle publish
inputs:
gradleWrapperFile: 'android/gradlew'
workingDirectory: 'android'
tasks: 'publish'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: "$(jdkVersion)"
sonarQubeRunAnalysis: false
options: "-PGPGSigningKeyID=$(gpgSignKey) -PGPGSigningPassword=$(gpgSignPassword) -PSigningSecretKeyRingFile=$(gpgSecretFileParentPath)"
- task: PublishPipelineArtifact@1
displayName: Publish library artifact to pipeline
inputs:
targetPath: 'android/library/build/artifacts/com/microsoft/design'
artifact: 'aar'
publishLocation: 'pipeline'