From ebf0085b236cd3f3f898fdf23ddd2be62f1527fc Mon Sep 17 00:00:00 2001 From: Pritam Rungta <59230352+pritamrungta@users.noreply.github.com> Date: Sat, 23 Nov 2024 19:02:43 +0530 Subject: [PATCH] deploy demo --- .github/workflows/demo.yml | 15 +++++++++------ demo/package.json | 3 +++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index d90336f..f49398c 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -38,14 +38,17 @@ jobs: deploy: needs: build + permissions: + pages: write + id-token: write runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/download-artifact@v4 with: name: demo - path: ./dist - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist + path: ./github-pages + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/demo/package.json b/demo/package.json index 1ade90b..029fd46 100644 --- a/demo/package.json +++ b/demo/package.json @@ -38,5 +38,8 @@ "typescript": "~5.6.2", "typescript-eslint": "^8.11.0", "vite": "^5.4.10" + }, + "volta": { + "node": "20.17.0" } }