From 439a0ef6c582bd16a2f88329f542bdb0384c06dd Mon Sep 17 00:00:00 2001 From: Philip Stockerer Date: Tue, 19 Apr 2022 13:35:34 +0000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f429c3a..463fca6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -19,18 +19,31 @@ steps: npm install npm run build displayName: 'npm install and build' + +- task: CopyFiles@2 + inputs: + SourceFolder: '$(Agent.BuildDirectory)/s' + Contents: | + ** + !package-lock.json + !package.json + !tsconfig.json + !**\.git\** + !**\node_modules\** + TargetFolder: '$(Agent.BuildDirectory)/upload' + displayName: Copy files to be uploaded to webspace in upload folder - task: FtpUpload@2 inputs: credentialsOption: 'inputs' serverUrl: 'ftp://e81782-ftp.services.easyname.eu' username: '127175ftp1' password: '.22ma1rzqi14' - rootDirectory: '$(Agent.BuildDirectory)/s' + rootDirectory: '$(Agent.BuildDirectory)/upload' filePatterns: '**' remoteDirectory: '/html/apps/$(Build.BuildId)/' clean: false cleanContents: false preservePaths: true trustSSL: false - displayName: Uploading to WebSpace + displayName: upload specified folder to webspace