Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish SpatialPy Docs

on:
push:
branches: [main]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Update and Publish docs
- run: cd docs && make publish-release
15 changes: 15 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ publish:
git checkout @{-1}
git stash pop

publish-release:
make clean
git stash
git checkout main
make html
-git add -f "$(BUILDDIR)"
-git commit -m "Latest build." "$(BUILDDIR)"
git push origin main -f
make clean
git checkout gh-pages
git pull origin main
git push origin gh-pages -f
git checkout @{-2}
git stash pop

apidocs: build-dir
sphinx-apidoc -f -T -o classes ../spatialpy

Expand Down
Loading