From 040aaf6f922f37ad38d9fcb9bfa3e39e24bd0552 Mon Sep 17 00:00:00 2001 From: Valentin Pratz Date: Tue, 17 Dec 2024 09:18:32 +0000 Subject: [PATCH] docs: test github workflow with new paths --- .github/workflows/docs.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index f0f66e0e6..687f448b2 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -2,11 +2,12 @@ # From https://github.com/eeholmes/readthedoc-test/blob/main/.github/workflows/docs_pages.yml name: docs -# execute this workflow automatically when we push to master +# execute this workflow automatically when we push to master or dev on: push: branches: - master + - dev jobs: @@ -17,13 +18,13 @@ jobs: - name: Checkout main uses: actions/checkout@v3 with: - path: master + path: dev - name: Checkout gh-pages uses: actions/checkout@v3 with: - path: gh-pages - ref: gh-pages + path: gh-pages-dev + ref: gh-pages-dev - name: Set up Python uses: actions/setup-python@v4 @@ -33,17 +34,17 @@ jobs: - name: Install dependencies run: | - cd ./master + cd ./dev python -m pip install .[docs] - name: Make the Sphinx docs run: | - cd ./master/docsrc + cd ./dev/docsrc make clean make github - name: Commit changes to docs run: | - cd ./gh-pages - cp -R ../master/docs/* ./ + cd ./gh-pages-dev + cp -R ../dev/docs/* ./ git config --local user.email "" git config --local user.name "github-actions" git add -A