Add docs target

pull/34/head
Andrey Kislyuk 2022-04-10 15:05:55 -07:00
parent 59573e7dd5
commit fdc7d3c334
No known key found for this signature in database
GPG Key ID: 8AFAFCD242818A52
1 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,17 @@ release:
http --check-status --auth ${GH_AUTH} POST ${UPLOADS_API}/$$(http --auth ${GH_AUTH} ${RELEASES_API}/latest | jq .id)/assets \
name==$$(basename dist/*.whl) label=="Python Wheel" < dist/*.whl
$(MAKE) release-pypi
$(MAKE) release-docs
release-docs:
$(MAKE) docs
-git branch -D gh-pages
git checkout -B gh-pages-stage
touch docs/html/.nojekyll
git add --force docs/html
git commit -m "Docs for ${TAG}"
git push --force origin $$(git subtree split --prefix docs/html --branch gh-pages):refs/heads/gh-pages
git checkout -
release-pypi:
python -m build