Fix deploy script for tag deploys
This commit is contained in:
parent
610bceae71
commit
f8224977b1
14
.github/deploy.sh
vendored
14
.github/deploy.sh
vendored
@ -33,7 +33,17 @@ if git diff --exit-code --quiet; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git add .
|
if [[ -n $TAG_NAME ]]; then
|
||||||
git commit -m "Automatic deploy to GitHub Pages: ${SHA}"
|
# Add the new dir
|
||||||
|
git add $TAG_NAME
|
||||||
|
# Update the symlink
|
||||||
|
git add stable
|
||||||
|
# Update versions file
|
||||||
|
git add versions.json
|
||||||
|
git commit -m "Add documentation for ${TAG_NAME} release: ${SHA}"
|
||||||
|
else
|
||||||
|
git add .
|
||||||
|
git commit -m "Automatic deploy to GitHub Pages: ${SHA}"
|
||||||
|
fi
|
||||||
|
|
||||||
git push "$SSH_REPO" "$TARGET_BRANCH"
|
git push "$SSH_REPO" "$TARGET_BRANCH"
|
||||||
|
Loading…
Reference in New Issue
Block a user