forked from wwt-ambassadors/starhunt-web-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (39 loc) · 1.21 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
# Azure Pipelines: build the Webclient
trigger:
# Note that this pipeline will still run on pull requests. However,
# operations that require service connections -- namely the AzureFileCopy --
# will be skipped on PR builds, so randos can't just update our website by
# submitting a PR.
branches:
include:
- master
pool:
# We need to run on Windows to take advantage of the AzureFileCopy@3 task.
vmImage: 'windows-latest'
steps:
- task: Npm@1
inputs:
command: 'install'
displayName: NPM install
- task: Grunt@0
inputs:
gruntFile: 'Gruntfile.js'
targets: 'dist-all'
displayName: Build distribution directory with Grunt
- task: CopyFiles@2
inputs:
sourceFolder: '$(build.sourcesDirectory)/dist'
targetFolder: '$(build.artifactStagingDirectory)'
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(build.artifactStagingDirectory)'
publishLocation: 'pipeline'
artifactName: wwt-webclient-deployment
displayName: Publish web deployment artifacts
- task: AzureFileCopy@3
inputs:
SourcePath: '$(build.artifactStagingDirectory)'
azureSubscription: 'azure-subscription'
Destination: 'AzureBlob'
storage: 'chalmersstarhunt'
ContainerName: '$web'