From 813296a4bb68e03ad1bee8148fe5f359008b11d5 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Thu, 28 Jul 2022 15:39:37 +0900 Subject: [PATCH] Use GitHub Pages action --- .github/workflows/GHPages.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/GHPages.yml b/.github/workflows/GHPages.yml index 75f157d..95f3497 100644 --- a/.github/workflows/GHPages.yml +++ b/.github/workflows/GHPages.yml @@ -3,12 +3,28 @@ name: GHPages on: push: branches: [master] + workflow_dispatch: null + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: pages + cancel-in-progress: true jobs: - deploy-docs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - uses: actions/setup-node@v3 - name: Install And Build run: |+ @@ -17,9 +33,12 @@ jobs: cd explorer npm install npm run build - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - name: Setup Pages + uses: actions/configure-pages@v1 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./explorer/dist - force_orphan: true + path: ./explorer/dist + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1