From 659dc036ba29c15e0c6e75d70334dab69bf21988 Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel Date: Thu, 16 May 2024 15:46:33 +0200 Subject: [PATCH] Build documentation at push and pull_request to master --- .github/workflows/python_sphinx_docs.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python_sphinx_docs.yml b/.github/workflows/python_sphinx_docs.yml index 4fc89546392..e9bd6813c6d 100644 --- a/.github/workflows/python_sphinx_docs.yml +++ b/.github/workflows/python_sphinx_docs.yml @@ -2,12 +2,12 @@ name: Build Python Sphinx Docs and push to gh-pages on: push: - branches: main + branches: master paths: - 'python/**' - '.github/workflows/python_sphinx_docs.yml' pull_request: - branches: main + branches: master paths: - 'python/**' - '.github/workflows/python_sphinx_docs.yml' @@ -17,7 +17,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: checkout source code + - name: Checkout source code uses: actions/checkout@v4 with: fetch-depth: 0 # Fetch all history for all tags and branches @@ -39,8 +39,8 @@ 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 + # 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 master -b master --git-root ../../ - name: Copy documentation to gh-pages run: |