Modify azure-pipelines.yaml: remove release branch and master branch now

triggers build of package.
This commit is contained in:
Robert Zhang 2020-02-19 14:11:15 +08:00
Родитель b63ab7894d
Коммит fcbe66b1a4
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -10,7 +10,6 @@ trigger:
branches:
include:
- master
- release
paths:
exclude:
- README.md
@ -72,15 +71,15 @@ stages:
- script: |
npm run build-prd
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/release'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: 'Build'
- script: |
./make-zip $BUILD_BUILDNUMBER
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/release'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: 'Package Build Result'
- publish: 'dist/WebPortal-$(Build.BuildNumber).zip'
artifact: Package
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/release'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: 'Publish Build Result'