summaryrefslogtreecommitdiffstats
path: root/vendor/mdbook/ci
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/mdbook/ci')
-rwxr-xr-xvendor/mdbook/ci/install-hub.sh24
-rwxr-xr-xvendor/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