Skip to content

Commit 0be974f

Browse files
committed
ci: fix publish dir
1 parent c499170 commit 0be974f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ on:
88
jobs:
99
deploy:
1010
runs-on: ubuntu-latest
11+
env:
12+
PUBLISH_DIR: ./dist/docs/browser
1113
steps:
1214
- name: Checkout code
1315
uses: actions/checkout@v4
1416

1517
- name: Set up Node.js
1618
uses: actions/setup-node@v4
1719
with:
18-
node-version: '22'
20+
node-version: '24'
1921

2022
- name: Install dependencies
2123
run: yarn
@@ -24,13 +26,13 @@ jobs:
2426
run: npm run build:docs
2527

2628
- name: Create 404.html
27-
run: cp ./dist/docs/index.html ./dist/docs/404.html
29+
run: cp ${{ env.PUBLISH_DIR }}/index.html ${{ env.PUBLISH_DIR }}/404.html
2830

2931
- name: Deploy to gh-pages
3032
uses: peaceiris/actions-gh-pages@v3
3133
with:
3234
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./dist/docs
35+
publish_dir: ${{ env.PUBLISH_DIR }}
3436
publish_branch: gh-pages
3537
user_name: 'github-actions[bot]'
3638
user_email: 'github-actions[bot]@users.noreply.github.com'

0 commit comments

Comments
 (0)