-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
70 lines (58 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
variables:
- group: SecryMasterCICDVariables
- name: 'BuildMessage'
value: '$(Build.SourceVersionMessage)'
trigger:
- master
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'macOS-latest'
steps:
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
- task: FlutterInstall@0
inputs:
channel: 'stable'
version: 'latest'
- task: FlutterTest@0
inputs:
projectDirectory:
- task: FlutterBuild@0
inputs:
target: apk
projectDirectory:
- task: AndroidSigning@3
displayName: 'Signing and aligning APK file(s) **/*.apk'
inputs:
apkFiles: '**/*.apk'
apksign: true
apksignerKeystoreFile: key.jks
apksignerKeystorePassword: $(keypassword)
apksignerKeystoreAlias: $(keyalias)
apksignerKeyPassword: $(keypassword)
- task: CopyFiles@2
inputs:
contents: '**/*.apk'
targetFolder: '$(Build.artifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
artifactName: 'drop'
- task: AppCenterDistribute@3
displayName: Run distribute
inputs:
serverEndpoint: 'SecryVSAppCenter'
appSlug: 'Secry/SecryAndroid'
appFile: 'build/app/outputs/flutter-apk/app-release.apk'
releaseNotesOption: 'input'
releaseNotesInput: '$(BuildMessage)'
destinationType: 'groups'