From 8398c8b83508b7a8c09150a38b602b9a0f2eff37 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 28 Aug 2023 17:38:28 +0900 Subject: [PATCH] use upload-pages-artifact@v2 and deploy-pages@v2 --- .github/workflows/github-pages.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 7e87292..9c1a73b 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -1,18 +1,25 @@ name: github-pages on: push: - branches: [main] + branches: main jobs: - main: - permissions: - pages: write - id-token: write - environment: github-pages + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - run: make build - - uses: actions/upload-pages-artifact@v1 + - uses: actions/upload-pages-artifact@v2 with: path: dist - - uses: actions/deploy-pages@v1 + deploy: + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} + permissions: + pages: write + id-token: write + needs: build + runs-on: ubuntu-latest + steps: + - id: deploy + uses: actions/deploy-pages@v2