Github Release publication only available for master branch

This commit is contained in:
Federico Terzi 2019-09-28 00:15:11 +02:00
parent c0c439a4d1
commit 19ec62d5ef
3 changed files with 9 additions and 2 deletions

View File

@ -33,3 +33,4 @@ steps:
addChangeLog: false addChangeLog: false
repositoryName: ${{ parameters.github.repositoryName }} repositoryName: ${{ parameters.github.repositoryName }}
isPreRelease: ${{ parameters.github.isPreRelease }} isPreRelease: ${{ parameters.github.isPreRelease }}
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

View File

@ -19,3 +19,4 @@ steps:
git commit -m "Update to version: $VER" git commit -m "Update to version: $VER"
git push git push
displayName: "Publishing to Homebrew" displayName: "Publishing to Homebrew"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

View File

@ -2,6 +2,11 @@ parameters:
rust_version: stable rust_version: stable
steps: steps:
- script: |
echo Master check
displayName: Master branch check
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
- template: install-rust.yml - template: install-rust.yml
- script: | - script: |