Skip to content

Commit af639e2

Browse files
committed
fix test docs
1 parent c9644d0 commit af639e2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build-docs.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
push:
55
branches:
66
- dev
7-
- test_docs_civ2
7+
pull_request:
8+
branches:
9+
- dev
810
workflow_dispatch:
911

1012
concurrency:
@@ -38,6 +40,10 @@ jobs:
3840
run: |
3941
poetry install --with docs
4042
43+
- name: Test documentation
44+
run: |
45+
make test-docs
46+
4147
- name: build documentation
4248
run: |
4349
make docs
@@ -50,16 +56,16 @@ jobs:
5056
BRANCH_NAME=${BRANCH_NAME////_}
5157
echo BRANCH_NAME=${BRANCH_NAME} >> $GITHUB_ENV
5258
53-
- name: save artifact
59+
- name: Upload artifact
5460
uses: actions/upload-artifact@v4
5561
with:
5662
name: ${{ format('github-pages-for-branch-{0}', env.BRANCH_NAME) }}
5763
path: docs/build/
5864
retention-days: 3
5965

60-
- name: deploy website
66+
- name: Deploy to GitHub Pages
6167
uses: JamesIves/github-pages-deploy-action@v4.6.4
62-
if: ${{ github.ref != 'refs/heads/dev' }}
68+
if: ${{ github.ref == 'refs/heads/dev' }}
6369
with:
6470
branch: gh-pages
6571
folder: docs/build/html/

0 commit comments

Comments
 (0)