2020-06-04 17:20:29 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-06-04 17:30:07 +01:00
|
|
|
set -e
|
|
|
|
|
2020-06-04 17:18:51 +01:00
|
|
|
if [ -z "$APPVEYOR_PULL_REQUEST_NUMBER" ]; then
|
|
|
|
if [ "$APPVEYOR_REPO_BRANCH" = "master" ]; then
|
|
|
|
echo "Building docs..."
|
|
|
|
|
|
|
|
echo "$GH_DEPLOY_TOKEN" | base64 -d > "$HOME/.ssh/id_rsa"
|
2020-06-04 17:30:07 +01:00
|
|
|
chmod 700 ~/.ssh
|
|
|
|
chmod 600 ~/.ssh/id_rsa
|
2020-06-04 17:18:51 +01:00
|
|
|
|
2020-06-04 17:34:19 +01:00
|
|
|
git config --global user.email "jonas@dellinger.dev"
|
|
|
|
git config --global user.name "AppVeyor Docs Builder"
|
|
|
|
|
2020-06-04 17:18:51 +01:00
|
|
|
cd ./SpotifyAPI.Docs
|
|
|
|
yarn
|
|
|
|
USE_SSH=true GIT_USER=JohnnyCrazy yarn deploy
|
|
|
|
fi
|
|
|
|
fi
|