Skip to content
Merged
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
8 changes: 0 additions & 8 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: Build docs

on:
push:
branches:
- master
paths:
- docs/**
- examples/**
- .github/workflows/build-docs.yml
- .github/actions/push_docs/**
release:
types:
- released
Expand Down
15 changes: 15 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,21 @@ def copy_examples(ctx):
)


@task(copy_examples)
def documentation(ctx):
"""
Push documentation to Heroku
"""
info("Deploying docs")
run("git checkout -b inv-push-docs")
run("git add docs/examples/vendor/*.py -f")
run('git commit -m "Add examples" --allow-empty')
run("git subtree split --prefix docs -b docs-deploy")
run("git push -f origin docs-deploy")
run("git checkout master")
run("git branch -D inv-push-docs docs-deploy")


@task(
help={
"version": "Version number to finalize. Must be "
Expand Down