-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
52 lines (44 loc) · 1.23 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
52 lines (44 loc) · 1.23 KB
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
# 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
trigger:
- none
pool:
vmImage: ubuntu-latest
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- script: |
echo Add other tasks to build, test, and deploy your project.
echo $(Agent.BuildDirectory)
cd $(Agent.BuildDirectory)
ls
cd $(Agent.BuildDirectory)/s
echo $(Agent.BuildDirectory)/s
echo "gmap_api_key=$(gmap_api_key)" > .env
ls
displayName: 'Run a multi-line script'
- task: Cache@2
inputs:
key: "android28"
restoreKeys: "android28"
path: "/usr/local/lib/android/sdk/platforms/android-28"
displayName: Cache Android sdk (test)
- task: FlutterInstall@0
inputs:
mode: 'auto'
channel: 'stable'
version: 'custom'
customVersion: '3.10.0'
- task: FlutterBuild@0
inputs:
target: 'apk'
projectDirectory: '$(Agent.BuildDirectory)/s'
env:
gmap_api_key: $(gmap_api_key)
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Agent.BuildDirectory)/s/build/app/outputs/flutter-apk/app-release.apk'
ArtifactName: 'drop'
publishLocation: 'Container'