Skip to content

Commit

Permalink
Trigger on gh-pagesx
Browse files Browse the repository at this point in the history
  • Loading branch information
lisajulia committed May 16, 2024
1 parent 471a579 commit dacbd68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python_sphinx_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Build Python Sphinx Docs and push to gh-pages

on:
push:
branches: main
branches: gh-pages
paths:
- 'python/**'
- '.github/workflows/python_sphinx_docs.yml'
pull_request:
branches: main
branches: gh-pages
paths:
- 'python/**'
- '.github/workflows/python_sphinx_docs.yml'
Expand Down Expand Up @@ -39,9 +39,9 @@ jobs:
cd sphinx_docs
# Currently we build only docs for the HEAD of the master branch
# Later we can add release tags to the list to get the docs for the releases
# For example: -b "main, release/2024.04/final" will build the docs for
# the main branch and the release/2024.04/final tag
poetry run sphinx-versioned -m master -b master --git-root ../../
# For example: -b "master, release/2024.04/final" will build the docs for
# the master branch and the release/2024.04/final tag
poetry run sphinx-versioned -m gh-pages -b gh-pages --git-root ../../
- name: Copy documentation to gh-pages
run: |
cp -r python/sphinx_docs/docs/_build/* python/gh-pages/
Expand Down

0 comments on commit dacbd68

Please sign in to comment.