We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610bcea commit f822497Copy full SHA for f822497
.github/deploy.sh
@@ -33,7 +33,17 @@ if git diff --exit-code --quiet; then
33
exit 0
34
fi
35
36
-git add .
37
-git commit -m "Automatic deploy to GitHub Pages: ${SHA}"
+if [[ -n $TAG_NAME ]]; then
+ # Add the new dir
38
+ git add $TAG_NAME
39
+ # Update the symlink
40
+ git add stable
41
+ # Update versions file
42
+ git add versions.json
43
+ git commit -m "Add documentation for ${TAG_NAME} release: ${SHA}"
44
+else
45
+ git add .
46
+ git commit -m "Automatic deploy to GitHub Pages: ${SHA}"
47
+fi
48
49
git push "$SSH_REPO" "$TARGET_BRANCH"
0 commit comments