Skip to content

Commit 9d1d5ff

Browse files
committed
build and deploy in the same action
1 parent 3892e9d commit 9d1d5ff

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/deploy_docs.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ on:
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,6 @@ jobs:
3133
cd docs
3234
make html
3335
34-
deploy_docs:
35-
needs: build_docs
36-
runs-on: ubuntu-latest
37-
env:
38-
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
39-
40-
steps:
4136
- name: deploy
4237
uses: peaceiris/actions-gh-pages@v4
4338
with:

0 commit comments

Comments
 (0)