Github Release publication only available for master branch
This commit is contained in:
parent
c0c439a4d1
commit
19ec62d5ef
|
@ -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'))
|
|
@ -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'))
|
|
@ -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: |
|
||||||
|
|
Loading…
Reference in New Issue
Block a user