From 69bfbbf19cb44ecfc06ca323ac5d8bfaeff90475 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 7 Apr 2019 17:47:30 -0400 Subject: [PATCH] And set up tagging and GitHub releases. That'll be all for the Azure Pipelines configuration; now we just need the AppVeyor configuration. --- _travis_yml | 10 ---------- azure-pipelines.yml | 8 ++++++++ azure-pipelines/artifacts.yml | 10 +++++++--- azure-pipelines/windows-artifacts.yml | 10 +++++++--- 4 files changed, 22 insertions(+), 16 deletions(-) delete mode 100644 _travis_yml diff --git a/_travis_yml b/_travis_yml deleted file mode 100644 index 244e8fc6..00000000 --- a/_travis_yml +++ /dev/null @@ -1,10 +0,0 @@ - -deploy: - provider: releases - api_key: - secure: "fmgC97mlXQY/ASWAL/GyTJfiJIo/hsVFf6bP3Zz8odv259PJUFGgnZ9kNIgJcFQ5961lXDFi7pBMMSetm1GZ2EBZxIXnUfe1kfIhw62ybJHIwB2+g2tc8A4zzfkWJVY4xVYpitOU3iMuu5Z8U2n+68RYWKpcxhbkVw5v8Zu2Rms=" - file: build/out/*.tgz - file_glob: true - skip_cleanup: true - on: - tags: true diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 125cfb34..d7d3d4c9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,5 +1,13 @@ # 31 march 2019 +trigger: + branches: + include: + - '*' + tags: + include: + - '*' + variables: releaseExamples: 'controlgallery cpp-multithread datetime drawtext histogram tester timer' diff --git a/azure-pipelines/artifacts.yml b/azure-pipelines/artifacts.yml index 8f9d28b5..9a3161e2 100644 --- a/azure-pipelines/artifacts.yml +++ b/azure-pipelines/artifacts.yml @@ -17,7 +17,11 @@ steps: rm ui.h ${{ parameters.osHeader }} popd displayName: 'Create Artifacts' -- task: PublishBuildArtifacts@1 +- task: GitHubRelease@0 inputs: - pathToPublish: $(Build.ArtifactStagingDirectory) - artifactName: ${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.libtype }} + 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 d92a9f07..acf2831d 100644 --- a/azure-pipelines/windows-artifacts.yml +++ b/azure-pipelines/windows-artifacts.yml @@ -17,7 +17,11 @@ steps: Remove-Item @("ui.h","${{ parameters.osHeader }}") popd displayName: 'Create Artifacts' -- task: PublishBuildArtifacts@1 +- task: GitHubRelease@0 inputs: - pathToPublish: $(Build.ArtifactStagingDirectory) - artifactName: ${{ parameters.os }}-${{ parameters.arch }}-${{ parameters.toolchain }}-${{ parameters.libtype }} + gitHubConnection: andlabs + repositoryName: andlabs/libui + action: 'edit' + addChangelog: false + assets: '$(Build.ArtifactStagingDirectory)/*' + assetUploadMode: 'replace'