Skip to content

Commit 5de52b9

Browse files
committed
ci: tweak docs preview url and deploy folder
1 parent 76d9ea1 commit 5de52b9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: JamesIves/github-pages-deploy-action@v4
2626
with:
27-
folder: .
27+
folder: docs/_build
2828
branch: gh-pages
2929
clean-exclude: pr-preview
3030
force: false

.github/workflows/preview-docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set base URL for preview if PR
17-
run: echo "DOCS_BASE_URL=https://${{ env.DOMAIN }}/${{ env.PR_PATH}}/" >> $GITHUB_ENV
1816

1917
- name: Setup PDM
2018
uses: pdm-project/setup-pdm@v4
@@ -31,7 +29,8 @@ jobs:
3129

3230
- uses: rossjrw/pr-preview-action@v1
3331
with:
34-
source-dir: .
32+
source-dir: docs/_build
3533
preview-branch: gh-pages
3634
umbrella-dir: pr-preview
3735
action: auto
36+
pages-base-url: chipflow-lib.docs.chipflow-infra.com

0 commit comments

Comments
 (0)