2020 displayName : ' Test'
2121 - script : ./helpers/update-site.sh
2222 displayName : ' Deploy'
23- # condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
23+ condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
2424 env :
2525 GIT_USER_EMAIL : $(GIT_USER_EMAIL)
2626 GIT_USER_NAME : $(GIT_USER_NAME)
@@ -30,10 +30,10 @@ jobs:
3030 BRANCH : variables['Build.SourceBranch']
3131 - script : npm run test-staging && node helpers/integration-tests/index.js
3232 displayName : ' Analyze staging with webhint'
33- # condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
33+ condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
3434 - task : AzureAppServiceManage@0
3535 displayName : ' Swap into production'
36- # condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
36+ condition : and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
3737 inputs :
3838 azureSubscription : ' webhint-web'
3939 Action : ' Swap Slots'
4444 curl https://www.google.com/ping?sitemap=https://webhint.io/sitemap.xml
4545 curl https://www.bing.com/ping?sitemap=https://webhint.io/sitemap.xml
4646 displayName: 'Update sitemaps'
47- # condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
47+ condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
4848
4949 - job : ' Algolia'
5050 pool :
0 commit comments