diff options
-rw-r--r-- | HOWTORELEASE.md | 6 | ||||
-rwxr-xr-x | tools/docs-push-gh-pages | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/HOWTORELEASE.md b/HOWTORELEASE.md new file mode 100644 index 0000000..d58bf69 --- /dev/null +++ b/HOWTORELEASE.md @@ -0,0 +1,6 @@ +# Instructions for publishing release + +1. Create release on GitHub. Name git tag like "v1.x". +2. Run "cd tools && ./docs-push-gh-pages". +3. Run "cd tools && ./docker-push". + diff --git a/tools/docs-push-gh-pages b/tools/docs-push-gh-pages index a633087..276ff3e 100755 --- a/tools/docs-push-gh-pages +++ b/tools/docs-push-gh-pages @@ -3,6 +3,7 @@ set -e ./docs-generate cd .. +git branch -D gh-pages || true git checkout --track origin/gh-pages find . -maxdepth 1 -not -name "docs" -not -name ".git" -not -name "tools" -print0 | xargs -0 rm -r || true mv docs/* . |