-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-1.yml
54 lines (43 loc) · 1.41 KB
/
azure-pipelines-1.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
# Node.js with Vue
# Build a Node.js project that uses Vue.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: DownloadSecureFile@1
name: quasarEnv
inputs:
secureFile: 'mkt.env.prod'
- script: mv mkt.env.prod .env
workingDirectory: $(Agent.TempDirectory)
displayName: 'rename env file'
- script: rm -f .env
workingDirectory: '$(Agent.BuildDirectory)/s'
displayName: 'remove any old env files'
- task: CopyFiles@2
displayName: 'Copy files from: $(quasarEnv.secureFilePath) or $(Agent.TempDirectory)'
inputs:
SourceFolder: $(Agent.TempDirectory)
Contents: '$(Agent.TempDirectory)/.env'
TargetFolder: '$(Agent.BuildDirectory)/s'
- script: npm install -g @quasar/cli
displayName: 'install quasar cli'
workingDirectory: '$(Agent.BuildDirectory)/s'
- script: npm install
displayName: 'npm install dependencies and packages'
workingDirectory: '$(Agent.BuildDirectory)/s'
- script: QENV=production npx quasar build
displayName: 'build quasar application'
workingDirectory: '$(Agent.BuildDirectory)/s'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop-mkt-prod'
inputs:
PathtoPublish: './dist'
ArtifactName: 'drop-mkt-prod'