From 69d4c04d13e55ae6135eaeb1df497f6fc712c923 Mon Sep 17 00:00:00 2001 From: zizifn <1803942+zizifn@users.noreply.github.com> Date: Tue, 16 May 2023 01:17:24 +0800 Subject: [PATCH] Update docs.yml --- .github/workflows/docs.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1d0f065..7e4a381 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -43,16 +43,13 @@ jobs: run: | npm install npm run build - - # please check out the docs of the workflow for more details - # @see https://github.com/crazy-max/ghaction-github-pages - - name: Deploy to GitHub Pages - uses: crazy-max/ghaction-github-pages@v2 + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 with: - # deploy to gh-pages branch - target_branch: gh-pages - # deploy the default output dir of VuePress - build_dir: docs/.vuepress/dist - env: - # @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Upload entire repository + path: './docs/.vuepress/dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2