From 21ba39fd49e5116d7f5caf66a844a69c897c5aae Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Fri, 17 May 2019 23:30:43 -0400 Subject: [PATCH] Add GitHub release to azure pipeline --- .ci/azure-build.yml | 37 ++++++++++++++++++++++++++++++++----- azure-pipelines.yml | 1 + 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/.ci/azure-build.yml b/.ci/azure-build.yml index 38714c4a..3bc94adc 100644 --- a/.ci/azure-build.yml +++ b/.ci/azure-build.yml @@ -1,14 +1,41 @@ steps: -- bash: | - ./.ci/install.sh - export PATH=/usr/local/bin:${PATH} - bash: | export CXX=${CXX_COMPILER} export CC=${C_COMPILER} # Use TRAVIS_TAG if defined, or the short commit SHA otherwise export VERSION=${TRAVIS_TAG:-$(git rev-parse --short HEAD)} -- bash: | + + ./.ci/install.sh + export PATH=/usr/local/bin:${PATH} + ./.ci/script.sh sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true - cp ./.ci/bintray-release.json . \ No newline at end of file + cp ./.ci/bintray-release.json . +- task: CopyFiles@2 + inputs: + #sourceFolder: # Optional + contents: | + '**/*.dmg' + '**/*.AppImage' + targetFolder: $(Build.ArtifactStagingDirectory) + #cleanTargetFolder: false # Optional + #overWrite: false # Optional + #flattenFolders: false # Optional +- task: GitHubRelease@0 + inputs: + gitHubConnection: Nheko-Reborn + repositoryName: '$(Build.Repository.Name)' + action: 'create' # Options: create, edit, delete + target: '$(Build.SourceVersion)' # Required when action == Create || Action == Edit + tagSource: 'auto' # Required when action == Create# Options: auto, manual + #tag: # Required when action == Edit || Action == Delete || TagSource == Manual + #title: # Optional + releaseNotesSource: 'file' # Optional. Options: file, input + releaseNotesFile: CHANGELOG.md # Optional + #releaseNotes: # Optional + assets: '$(Build.ArtifactStagingDirectory)/*' # Optional + assetUploadMode: 'delete' # Optional. Options: delete, replace + #isDraft: false # Optional + isPreRelease: true # Optional + addChangeLog: true # Optional \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4fe24f0c..8742e766 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,6 +22,7 @@ stages: C_COMPILER: 'clang-6.0' QT_VERSION: '5.11.1' QT_PKG: '511' + DEPLOYMENT: '1' USE_BUNDLED_BOOST: '1' USE_BUNDLED_CMARK: '1' USE_BUNDLED_JSON: '1'