Skip to content

Commit 35a2d92

Browse files
authored
Merge pull request #80 from NREL/docfix
Fix GitHub page deployment
2 parents 951d71c + 0ab7ab3 commit 35a2d92

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

.github/workflows/build_docs.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
name: BiRD-build-documentation
22

33
on:
4-
push:
5-
branches: [ main ]
6-
paths:
7-
- 'docs/**'
8-
- '.github/workflows/docs_pages.yml'
94
pull_request:
10-
branches: [main]
5+
branches: [ main ]
116
paths:
127
- 'docs/**'
13-
- '.github/workflows/docs_pages.yml'
8+
- '.github/workflows/build_docs.yml'
149

1510
jobs:
1611

.github/workflows/deploy_docs.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
branches: [ main ]
66
paths:
77
- 'docs/**'
8-
- '.github/workflows/docs_pages.yml'
8+
- '.github/workflows/deploy_docs.yml'
99

1010
jobs:
1111

12-
build_docs:
12+
build_deploy_docs:
1313
runs-on: ubuntu-latest
14+
env:
15+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v4
@@ -31,13 +33,7 @@ jobs:
3133
cd docs
3234
make html
3335
34-
deploy_docs:
35-
runs-on: ubuntu-latest
36-
env:
37-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
38-
39-
steps:
40-
- name: deploy
36+
- name: Deploy
4137
uses: peaceiris/actions-gh-pages@v4
4238
with:
4339
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)