File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 55pool :
66 vmImage : ' ubuntu-latest'
77
8+ variables :
9+ - group : ' ftp-variables'
10+
811steps :
912- task : Npm@1
1013 displayName : ' npm install'
1821 customCommand : ' run build'
1922
2023- task : CopyFiles@2
24+ displayName : ' Copy files to artifact staging'
2125 condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
2226 inputs :
2327 SourceFolder : ' /build'
@@ -27,8 +31,23 @@ steps:
2731 OverWrite : true
2832
2933- task : PublishBuildArtifacts@1
34+ displayName : ' Publish artifacts to Azure Pipelines'
3035 condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
3136 inputs :
3237 PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
3338 ArtifactName : ' website'
34- publishLocation : ' Container'
39+ publishLocation : ' Container'
40+
41+ - task : FtpUpload@2
42+ condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
43+ inputs :
44+ credentialsOption : ' inputs'
45+ serverUrl : ' $(ftp.server)'
46+ username : ' $(ftp.username)'
47+ password : ' $(ftp.password)'
48+ rootDirectory : ' $(Build.ArtifactStagingDirectory)'
49+ filePatterns : ' **'
50+ remoteDirectory : ' /unitydevops.com'
51+ clean : true
52+ preservePaths : true
53+ trustSSL : true
You can’t perform that action at this time.
0 commit comments