Skip to content

Commit

Permalink
docs: test github workflow with new paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vpratz committed Dec 17, 2024
1 parent 6cddb6c commit 040aaf6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 040aaf6

Please sign in to comment.