From 386f78c59aa80f45ee8f45f3f091d0eb28932ac4 Mon Sep 17 00:00:00 2001 From: shiro Date: Wed, 27 Mar 2024 14:29:50 +0900 Subject: [PATCH] Update CI --- .github/workflows/CI.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9773a73..ff707b2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: permissions: - contents: write + contents: read pages: write id-token: write @@ -28,12 +28,19 @@ jobs: env: BASE_PATH: /my-app/ - - name: create .nojekyll - run: touch .output/public/.nojekyll - - - name: deploy pages - uses: JamesIves/github-pages-deploy-action@v4.5.0 + - name: deploy + uses: actions/upload-pages-artifact@v3 with: - branch: master - folder: .output/public + path: '.output/public' + deploy-docs: + name: Deploy docs + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2