From f7e8140103e4e67298d4e39728dd20701a3acc35 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Wed, 12 Oct 2022 21:30:32 +0300 Subject: [PATCH] Revert docs generation from a branch --- .github/workflows/docs.yml | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) 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 }}