-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
39 lines (39 loc) · 1.27 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
trigger:
- "CI-CD"
- dev
jobs:
- job: Android
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: |
sudo snap install flutter --classic
# sed -i 's/4000/3000' ./lib/api/kAPI.dart
flutter pub get
flutter build apk --debug
flutter build apk --profile
flutter build apk --split-debug-info --obfuscate --target-platform=android-arm64
cp ./build/app/outputs/flutter-apk/app-release.apk ./
workingDirectory: '$(Build.SourcesDirectory)'
- task: AndroidSigning@3
inputs:
zipalign: false
apkFiles: '**/app-release.apk'
apksignerKeystoreFile: 'qmeuser.jks'
apksignerKeystorePassword: $(keypassword)
apksignerKeystoreAlias: $(keyalias)
apksignerKeyPassword: $(keypassword)
env:
KEY_PASSWORD: $(keypassword)
- task: CopyFiles@2
inputs:
Contents: '**/app-release.apk'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'apks'
publishLocation: 'Container'