-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
38 lines (33 loc) · 1.24 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
trigger:
- main
pool:
vmImage: windows-latest
jobs:
- deployment: DeployToMAG9050
displayName: Deploy to Deployment Group MAG9050
environment: 'MAG9050'
strategy:
runOnce:
deploy:
steps:
- task: NodeTool@0
inputs:
versionSpec: '14.x'
displayName: 'Install Node.js'
- script: |
npm install
npm run build
displayName: 'npm install and build'
workingDirectory: $(System.DefaultWorkingDirectory) # Make sure you're in the right directory
- script: |
dir $(System.DefaultWorkingDirectory)
displayName: List Working Directory After Build
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)' # Relative path to the build output directory
ArtifactName: 'MyAppArtifact'
- task: IISWebAppDeploymentOnMachineGroup@0
inputs:
WebSiteName: 'Default Web Site' # Replace with your actual IIS website name
Package: '$(System.DefaultWorkingDirectory)/package-lock.json' # Replace with the actual path to your built artifact
DeploymentGroupName: 'MAG9050' # Specify your deployment group name