fix: actions 404

This commit is contained in:
ex_zhangwenlei@exiot.cmcc
2024-01-13 09:41:42 +08:00
parent 43dfe82408
commit 006c57b47b

View File

@@ -31,6 +31,9 @@ jobs:
cache: 'pnpm' cache: 'pnpm'
- run: pnpm install - run: pnpm install
- run: pnpm build - run: pnpm build
- name: Copy and Rename index.html to dist
run: cp dist/index.html dist/404.html
- name: Deploy to gh-pages - name: Deploy to gh-pages
uses: crazy-max/ghaction-github-pages@v2 uses: crazy-max/ghaction-github-pages@v2
with: with:
@@ -38,3 +41,5 @@ jobs:
build_dir: dist build_dir: dist
env: env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}