From 157300403dbbf8e590e717c7384b3c7d74c7e3c8 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 2 Dec 2023 12:10:43 +0100 Subject: [PATCH] Revert "GitHub Actions: use actions/deploy-pages" This reverts commit 2f60b9e7c266c8821ad1e368a93a67d52e01a74b. --- .github/workflows/node-ci.yml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index c504f427..d80033cd 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -3,7 +3,6 @@ name: Node CI on: push: pull_request: - workflow_dispatch: jobs: build: @@ -16,26 +15,8 @@ jobs: - run: yarn install --no-progress --frozen-lockfile - run: yarn test - run: yarn build - - uses: actions/configure-pages@v3 - - uses: actions/upload-pages-artifact@v2 + - uses: peaceiris/actions-gh-pages@v3 + if: github.event_name == 'push' && github.ref == 'refs/heads/master' with: - path: ./dist - - deploy: - runs-on: ubuntu-latest - if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master') - permissions: - contents: read - pages: write - id-token: write - concurrency: - group: 'pages' - cancel-in-progress: true - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist