Skip to content

Commit 040aaf6

Browse files
committed
docs: test github workflow with new paths
1 parent 6cddb6c commit 040aaf6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/docs.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# From https://github.com/eeholmes/readthedoc-test/blob/main/.github/workflows/docs_pages.yml
33
name: docs
44

5-
# execute this workflow automatically when we push to master
5+
# execute this workflow automatically when we push to master or dev
66
on:
77
push:
88
branches:
99
- master
10+
- dev
1011

1112
jobs:
1213

@@ -17,13 +18,13 @@ jobs:
1718
- name: Checkout main
1819
uses: actions/checkout@v3
1920
with:
20-
path: master
21+
path: dev
2122

2223
- name: Checkout gh-pages
2324
uses: actions/checkout@v3
2425
with:
25-
path: gh-pages
26-
ref: gh-pages
26+
path: gh-pages-dev
27+
ref: gh-pages-dev
2728

2829
- name: Set up Python
2930
uses: actions/setup-python@v4
@@ -33,17 +34,17 @@ jobs:
3334

3435
- name: Install dependencies
3536
run: |
36-
cd ./master
37+
cd ./dev
3738
python -m pip install .[docs]
3839
- name: Make the Sphinx docs
3940
run: |
40-
cd ./master/docsrc
41+
cd ./dev/docsrc
4142
make clean
4243
make github
4344
- name: Commit changes to docs
4445
run: |
45-
cd ./gh-pages
46-
cp -R ../master/docs/* ./
46+
cd ./gh-pages-dev
47+
cp -R ../dev/docs/* ./
4748
git config --local user.email ""
4849
git config --local user.name "github-actions"
4950
git add -A

0 commit comments

Comments
 (0)