Skip to content

Commit

Permalink
Fix deployment of GitHub Pages (try 2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Sep 2, 2020
1 parent 805ff34 commit 2349df4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
- name: Generate documentation
run: nox -s docs

# This helps ensure the generated files are included by the action
# in the next step.
- name: Remove generated files from .gitignore
run: sed -n '/# Generated files/q;p' .gitignore > .gitignore

- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ def docs_live(session):

@nox.session(python="3.8", reuse_venv=True)
def docs(session):
# Generate relevant files prior to installation
session.run("gulp", "build", external=True)

_install_this_project_with_flit(session, extras=["doc"], editable=False)

session.run("gulp", "build", external=True)
# Generate documentation into `build/docs`
session.run("sphinx-build", "-b", "html", "-v", "docs/", "build/docs")

Expand Down

0 comments on commit 2349df4

Please sign in to comment.