From f4a5e30e26c50e91fb5fa064577ab37359dadca8 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 16 Jan 2020 23:58:24 +0800 Subject: Update CI. --- azure-pipelines.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 14f8a670..b24ef219 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -60,23 +60,26 @@ stages: - script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --output ./Timeline/publish/ displayName: Dotnet Publish - - task: PublishPipelineArtifact@1 - inputs: - artifactName: 'timeline' - targetPath: Timeline/publish + - publish: Timeline/publish + artifact: timeline - deployment: deploy displayName: Deploy to Server - pool: - name: 'Default' - environment: 'timeline-server' + environment: + name: timeline-server + resourceType: VirtualMachine + tags: linux dependsOn: build strategy: runOnce: - deploy: + preDeploy: steps: + - download: none + - download: current - artifact: 'timeline' + artifact: timeline + deploy: + steps: - script: | rm -rf /var/timeline/* cp -r $PIPELINE_WORKSPACE/timeline/. /var/timeline/ -- cgit v1.2.3