diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cbdbeb5b..1d067189 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,17 +16,27 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} steps: - uses: actions/checkout@v4 - - uses: wyvox/action-setup-pnpm@v3 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: - node-version: 18 - + node-version: 20 + cache: pnpm + - name: Install Dependencies + run: pnpm install --no-lockfile - name: Generate docs run: pnpm build - - - name: Deploy to GH pages - uses: peaceiris/actions-gh-pages@v4 + - name: Upload Artifact + uses: actions/upload-pages-artifact@v1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist + path: "./dist" + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2