-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeploy-demo.yml
58 lines (50 loc) · 1.33 KB
/
deploy-demo.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
trigger:
- master
# no PR triggers
pr: none
stages:
- stage: deploy_demo
displayName: Deploy demo application
jobs:
- job: build
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
fetchDepth: 50
fetchTags: true
- task: DotNetCoreCLI@2
displayName: Add Manifest for tool installation
inputs:
command: 'custom'
custom: 'new '
arguments: tool-manifest
- task: DotNetCoreCLI@2
displayName: Install minver
inputs:
command: 'custom'
custom: 'tool '
arguments: install minver-cli
- task: PowerShell@2
displayName: 'Set MinVer Version'
inputs:
targetType: inline
script: |
$version = dotnet minver -p preview
echo "##vso[build.updatebuildnumber]$version"
Write-Host "Setting MinVer to '$version'"
- task: Npm@1
displayName: 'npm ci'
inputs:
command: 'ci'
- task: Npm@1
displayName: 'Build demo application'
inputs:
command: 'custom'
customCommand: 'run build @enigmatry/demo-app'
- task: AzureStaticWebApp@0
inputs:
app_location: '/dist/enigmatry/apps/demo-app/browser'
output_location: '/'
azure_static_web_apps_api_token: $(deployment_token)
displayName: 'Deploy demo application'