diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml index 758ad6e..a5c1c28 100644 --- a/.github/workflows/deploy-pages.yml +++ b/.github/workflows/deploy-pages.yml @@ -49,4 +49,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist # 这里的 dist 是构建后的文件目录,根据实际情况修改 \ No newline at end of file + publish_dir: ./dist # 这里的 dist 是构建后的文件目录,根据实际情况修改 diff --git a/package.json b/package.json index ac36ccf..0cad980 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "tutorials", "scripts": { "dev": "vitepress dev docs", + "build": "vitepress build docs", "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs"