Oh, I had to make the connectiona vailable to use on all pipelines.

This commit is contained in:
Pietro Gagliardi 2019-04-07 23:31:08 -04:00
parent 88a3267cdd
commit ab58d0053c
2 changed files with 16 additions and 20 deletions

View File

@ -1,7 +1,5 @@
# 6 april 2019
# TODO the github task requires authorization for the connection on non-master branches but I can't seem to figure out how to do that with a YAML pipeline
parameters:
os: ''
arch: ''
@ -19,12 +17,11 @@ steps:
rm ui.h ${{ parameters.osHeader }}
popd
displayName: 'Create Artifacts'
- ${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
- task: GitHubRelease@0
inputs:
gitHubConnection: andlabs
repositoryName: andlabs/libui
action: 'edit'
addChangelog: false
assets: '$(Build.ArtifactStagingDirectory)/*'
assetUploadMode: 'replace'
- task: GitHubRelease@0
inputs:
gitHubConnection: andlabs
repositoryName: andlabs/libui
action: 'edit'
addChangelog: false
assets: '$(Build.ArtifactStagingDirectory)/*'
assetUploadMode: 'replace'

View File

@ -17,12 +17,11 @@ steps:
Remove-Item @("ui.h","${{ parameters.osHeader }}")
popd
displayName: 'Create Artifacts'
- ${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
- task: GitHubRelease@0
inputs:
gitHubConnection: andlabs
repositoryName: andlabs/libui
action: 'edit'
addChangelog: false
assets: '$(Build.ArtifactStagingDirectory)/*'
assetUploadMode: 'replace'
- task: GitHubRelease@0
inputs:
gitHubConnection: andlabs
repositoryName: andlabs/libui
action: 'edit'
addChangelog: false
assets: '$(Build.ArtifactStagingDirectory)/*'
assetUploadMode: 'replace'