diff --git a/.github/workflows/deploy-gh-pages.yaml b/.github/workflows/deploy-gh-pages.yaml index fec3f7156aec..dda95fead8bb 100644 --- a/.github/workflows/deploy-gh-pages.yaml +++ b/.github/workflows/deploy-gh-pages.yaml @@ -37,5 +37,6 @@ jobs: - name: 🚀 Deploy to GitHub pages uses: JamesIves/github-pages-deploy-action@4.1.1 with: - BRANCH: gh-pages # The branch the action should deploy to. - FOLDER: build # The folder the action should deploy. + branch: gh-pages # The branch to deploy to. + folder: build # Synchronise with build.py -> build_directory + single-commit: true # Delete existing files diff --git a/build.py b/build.py index e5c1f418143c..64e0e50983e0 100644 --- a/build.py +++ b/build.py @@ -27,7 +27,7 @@ def create_parser(): root_directory = Path(".").absolute() source_directory = root_directory - build_directory = root_directory / "build" + build_directory = root_directory / "build" # synchronise with deploy-gh-pages.yaml -> deploy step doctree_directory = build_directory / ".doctrees" config_overrides = {}