From ab58d0053cfe4ef554630f14c181b63e095c2a81 Mon Sep 17 00:00:00 2001
From: Pietro Gagliardi <pietro10@mac.com>
Date: Sun, 7 Apr 2019 23:31:08 -0400
Subject: [PATCH] Oh, I had to make the connectiona vailable to use on all
 pipelines.

---
 azure-pipelines/artifacts.yml         | 19 ++++++++-----------
 azure-pipelines/windows-artifacts.yml | 17 ++++++++---------
 2 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/azure-pipelines/artifacts.yml b/azure-pipelines/artifacts.yml
index 04bdfb8f..9a3161e2 100644
--- a/azure-pipelines/artifacts.yml
+++ b/azure-pipelines/artifacts.yml
@@ -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'
diff --git a/azure-pipelines/windows-artifacts.yml b/azure-pipelines/windows-artifacts.yml
index 101e3b0d..acf2831d 100644
--- a/azure-pipelines/windows-artifacts.yml
+++ b/azure-pipelines/windows-artifacts.yml
@@ -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'