Skip to content

Commit f85513b

Browse files
authored
[no ci] docs: adapt actions for branch main (#360)
1 parent 3059529 commit f85513b

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/workflows/multiversion-docs.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77
push:
88
branches:
9-
- dev
9+
- main
1010

1111
jobs:
1212

@@ -17,16 +17,10 @@ jobs:
1717
- name: Checkout main
1818
uses: actions/checkout@v3
1919
with:
20-
path: dev
20+
path: repo
2121
fetch-depth: 0
2222
fetch-tags: true
2323

24-
- name: Checkout gh-pages-dev
25-
uses: actions/checkout@v3
26-
with:
27-
path: gh-pages-dev
28-
ref: gh-pages-dev
29-
3024
- name: Set up Python
3125
uses: actions/setup-python@v4
3226
with:
@@ -35,22 +29,31 @@ jobs:
3529

3630
- name: Install dependencies
3731
run: |
38-
cd ./dev
32+
cd ./repo
3933
python -m pip install .[docs]
34+
4035
- name: Create local branches
4136
run: |
42-
cd ./dev
37+
cd ./repo
4338
git branch main remotes/origin/main
39+
4440
- name: Make the Sphinx docs
4541
run: |
46-
cd ./dev/docsrc
42+
cd ./repo/docsrc
4743
make clean
4844
make docs-sequential
45+
46+
- name: Checkout gh-pages-dev
47+
uses: actions/checkout@v3
48+
with:
49+
path: gh-pages-dev
50+
ref: gh-pages-dev
51+
4952
- name: Commit changes to docs
5053
run: |
5154
cd ./gh-pages-dev
5255
git rm --quiet -rf .
53-
cp -R ../dev/docs/* ./
56+
cp -R ../repo/docs/* ./
5457
git config --local user.email ""
5558
git config --local user.name "github-actions"
5659
git add -A

.github/workflows/test-docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
pull_request:
66
branches:
77
- dev
8+
- main
89

910
jobs:
1011
build_docs:

0 commit comments

Comments
 (0)