Skip to content

Commit c34755f

Browse files
committed
trying to build docs with script and branch separation
1 parent 6db60c4 commit c34755f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ jobs:
3737
forge build --sizes
3838
id: build
3939

40-
- name: Generate docs
41-
run: forge doc --build
40+
- name: Generate and patch docs
41+
run: |
42+
bash build-docs.sh
4243
4344
- name: Deploy to GitHub Pages
45+
env:
46+
BRANCH_NAME: ${{ github.ref_name }}
4447
uses: peaceiris/actions-gh-pages@v3
4548
with:
4649
github_token: ${{ secrets.GITHUB_TOKEN }}
47-
publish_dir: ./docs/book
50+
publish_dir: ./docs/_build/${{ env.BRANCH_NAME }}
4851
publish_branch: gh-pages
4952
force_orphan: true

build-docs.sh

Whitespace-only changes.

0 commit comments

Comments
 (0)