From 5915542b88f241bc081efc56c730e30830763ae5 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Wed, 20 Nov 2024 05:56:28 +0700 Subject: [PATCH] deploy using actions/deploy-pages --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19eb0189..9b667f37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,13 +52,18 @@ jobs: deploy-production: if: github.ref == 'refs/heads/main' needs: check-and-build + + permissions: + pages: write + id-token:: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - with: - name: artifact - path: deploy - - uses: JamesIves/github-pages-deploy-action@v4 + - id: deployment + uses: actions/deploy-pages@v4 with: - folder: deploy + artifact_name: artifact