From: Jason Gunthorpe <jgg@xxxxxxxxxxxx> Build a draft release and push the source .tar.gz to GitHub's releases page. For some reason this relies on an Azure Pipeline's user-specific service connection instead of the existing app installation: https://github.com/MicrosoftDocs/vsts-docs/issues/4260 This is done in a dedicated YAML file as it runs with a separate configuration on AZP that authorizes it to use the write-access service connections. Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx> --- .travis.yml | 17 ---------- buildlib/azure-pipelines-release.yml | 48 ++++++++++++++++++++++++++++ buildlib/github-release | 7 ---- 3 files changed, 48 insertions(+), 24 deletions(-) create mode 100644 buildlib/azure-pipelines-release.yml delete mode 100755 buildlib/github-release diff --git a/.travis.yml b/.travis.yml index 82f16d65e0a646..e00b0165215b4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,20 +43,3 @@ before_script: - http_proxy= pip3 install cython script: - buildlib/travis-build - - buildlib/github-release -deploy: - # Deploy assets to Github releases - # https://docs.travis-ci.com/user/deployment/releases/ - provider: releases - api_key: - # This is encrypted OAth token generated by - # Travis CLI tool (travis setup releases) limited to specific repo. - secure: ok/WMzFgsSnk+NZ850QEUESHRfJ4Ae7T8eA4dcx4fuw2RqybAh8wjxrLP5GKR27WrzB3hKHHTi7fgE0VtBY024kGJ/+wlQXHN1p89JvCiQlGOKkxy5YIlS4GUhwwkqgoU+hmifxl1i+9yCuowHPIM4WoP+NR+IZgvMahlrdPCS2OleFtrqyaHZbC/Usdt0WZLeQzG+rVLec/NvPnVOn81e17yuAuluHAzu+qcV94szqe/zwDzG8RUUKXaeDEQ3JQja4bCLL/kTkWR8JGsfwvcqc9Ut4Ry2b7uEWp5/FIcxUGWviKRgRzEdcT40iMMiJbIrH7gYp66Ymr/dypqUfc4u/xSb4AmpTMcYGUXJxsdzKyL6d/7HbuHIIVc5o1V/L5mdaIjeO5KjTFjMMD5KoSXfBlNIGk2as1JD/99lxJ3VlpQGwI5390+Tyl8o4Ao4aBXSCG96PDK4+UkYFht/wrw+UoYdV07u3x7zz21O3N3Lu5733hDvcvyOW6uIzoeLQ5O62/3Pq+DOFRs/nnRiW8/gjIkEQAyj/GGxw/taslpFJFcdVt/MSueV4t5OCI2YdGA/NxG/c4FIGy+dntV5BB6Gld8KkP/PP74yzJ1o/PRDRExTbsQzrdisDrVIf0r4pxTTsw1gXRE5r6S0tQ5aNoXAQ5h4xiwAIGqqBF4HESJjA= - file: rdma-core-*.tar.gz - # Allow asterisks in file names. - file_glob: true - skip_cleanup: true - # Limit scope of deploy to specific repo. - on: - repo: linux-rdma/rdma-core - tags: true diff --git a/buildlib/azure-pipelines-release.yml b/buildlib/azure-pipelines-release.yml new file mode 100644 index 00000000000000..fd5e4a1e43270d --- /dev/null +++ b/buildlib/azure-pipelines-release.yml @@ -0,0 +1,48 @@ +# See https://aka.ms/yaml +# This pipeline runs to produce GitHub releases when tags are pushed. The +# pipeline is never run from a PR and has access to all the build secrets, +# including write permission to GitHub. + +trigger: + tags: + include: + - v* + +resources: + containers: + - container: azp + image: ucfconsort.azurecr.io/rdma-core/azure_pipelines:25.0 + endpoint: ucfconsort_registry + +stages: + - stage: Release + jobs: + - job: SrcPrep + displayName: Build Source Tar + pool: + vmImage: 'Ubuntu-16.04' + container: azp + steps: + - checkout: self + fetchDepth: 1 + + - bash: | + set -e + mkdir build-pandoc artifacts + cd build-pandoc + CC=gcc-9 cmake -GNinja .. + ninja docs + + cd .. + python3 buildlib/cbuild make-dist-tar build-pandoc + displayName: Prebuild Documentation + + - task: GithubRelease@0 + displayName: 'Create GitHub Release' + inputs: + githubConnection: github_release + repositoryName: linux-rdma/rdma-core + assets: ./*.tar.gz + action: create + isDraft: true + addChangeLog: true diff --git a/buildlib/github-release b/buildlib/github-release deleted file mode 100755 index 8fc536fb8b1074..00000000000000 --- a/buildlib/github-release +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -e - -if [[ $TRAVIS_TAG == v* ]] && [ "$TRAVIS_OS_NAME" = "linux" ]; then - buildlib/cbuild make-dist-tar --tag "$TRAVIS_TAG" build-travis -fi -- 2.22.0