minor build fixes

This commit is contained in:
Nick Sweeting 2021-02-01 05:13:46 -05:00
parent aa84a7ff2b
commit 783f597955
5 changed files with 19 additions and 5 deletions

View file

@ -12,14 +12,14 @@ IFS=$'\n'
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
VERSION="$(jq -r '.version' < "$REPO_DIR/package.json")"
SHORT_VERSION="$(echo "$VERSION" | perl -pe 's/(\d+)\.(\d+)\.(\d+)/$1.$2/g')"
cd "$REPO_DIR"
echo "[^] Pushing docs to github"
cd docs/
git commit -am "$NEW_VERSION release"
git add .
git commit -am "$VERSION release"
git push
git tag -a "v$NEW_VERSION" -m "v$NEW_VERSION"
git tag -a "v$VERSION" -m "v$VERSION"
git push origin master
git push origin --tags