diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 577992dc..886dbb5c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,32 +11,18 @@ on: - completed workflow_dispatch: -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: "pages" - cancel-in-progress: true +permissions: write-all jobs: generate: runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - uses: actions/checkout@v3 with: fetch-depth: 0 token: ${{ secrets.GITHUB_TOKEN }} - - name: Setup Pages - uses: actions/configure-pages@v2 - - name: Setup Node.js uses: actions/setup-node@v3 @@ -56,11 +42,10 @@ jobs: - name: Build VuePress site run: npm run build - - name: Upload artifact - uses: actions/upload-pages-artifact@v1 - with: - path: './docs/.vuepress/dist' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v1 + uses: crazy-max/ghaction-github-pages@v3.0.0 + with: + target_branch: gh-pages + build_dir: docs/.vuepress/dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}