From 0fe6b44795a766c7054266186605062839151f60 Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Thu, 4 Jun 2020 18:18:51 +0200 Subject: [PATCH] Added docs build script --- SpotifyAPI.Docs/docs.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 SpotifyAPI.Docs/docs.sh diff --git a/SpotifyAPI.Docs/docs.sh b/SpotifyAPI.Docs/docs.sh new file mode 100644 index 00000000..654a4b13 --- /dev/null +++ b/SpotifyAPI.Docs/docs.sh @@ -0,0 +1,12 @@ +if [ -z "$APPVEYOR_PULL_REQUEST_NUMBER" ]; then + if [ "$APPVEYOR_REPO_BRANCH" = "master" ]; then + echo "Building docs..." + nvm alias default 14.3.0 + + echo "$GH_DEPLOY_TOKEN" | base64 -d > "$HOME/.ssh/id_rsa" + + cd ./SpotifyAPI.Docs + yarn + USE_SSH=true GIT_USER=JohnnyCrazy yarn deploy + fi +fi