diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/mdbook/ci | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/mdbook/ci')
-rwxr-xr-x | vendor/mdbook/ci/install-hub.sh | 24 | ||||
-rwxr-xr-x | vendor/mdbook/ci/make-release-asset.sh (renamed from vendor/mdbook/ci/make-release.sh) | 7 |
2 files changed, 4 insertions, 27 deletions
diff --git a/vendor/mdbook/ci/install-hub.sh b/vendor/mdbook/ci/install-hub.sh deleted file mode 100755 index 38da2c8cb..000000000 --- a/vendor/mdbook/ci/install-hub.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash -# Installs the `hub` executable into hub/bin -set -ex -case $1 in - ubuntu*) - curl -LsSf https://github.com/github/hub/releases/download/v2.12.8/hub-linux-amd64-2.12.8.tgz -o hub.tgz - mkdir hub - tar -xzvf hub.tgz --strip=1 -C hub - ;; - macos*) - curl -LsSf https://github.com/github/hub/releases/download/v2.12.8/hub-darwin-amd64-2.12.8.tgz -o hub.tgz - mkdir hub - tar -xzvf hub.tgz --strip=1 -C hub - ;; - windows*) - curl -LsSf https://github.com/github/hub/releases/download/v2.12.8/hub-windows-amd64-2.12.8.zip -o hub.zip - 7z x hub.zip -ohub - ;; - *) - echo "OS should be first parameter, was: $1" - ;; -esac - -echo "$PWD/hub/bin" >> $GITHUB_PATH diff --git a/vendor/mdbook/ci/make-release.sh b/vendor/mdbook/ci/make-release-asset.sh index 64ef84b92..1fb06ce81 100755 --- a/vendor/mdbook/ci/make-release.sh +++ b/vendor/mdbook/ci/make-release-asset.sh @@ -44,9 +44,10 @@ case $1 in esac cd ../.. -if [[ -z "$GITHUB_TOKEN" ]] +if [[ -z "$GITHUB_ENV" ]] then - echo "$GITHUB_TOKEN not set, skipping deploy." + echo "GITHUB_ENV not set, run: gh release upload $TAG target/$asset" else - hub release edit -m "" --attach $asset $TAG + echo "MDBOOK_TAG=$TAG" >> $GITHUB_ENV + echo "MDBOOK_ASSET=target/$asset" >> $GITHUB_ENV fi |