diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 05082ff..17a7756 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -16,27 +16,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Setup Pages - id: pages - uses: actions/configure-pages@v3 - - uses: oven-sh/setup-bun@v2 - - run: bun install --frozen-lockfile - - run: bun run build - - name: Upload artifact - uses: actions/upload-pages-artifact@v2 - with: - path: 'dist' + - name: Install, build, and upload your site + uses: withastro/action@v2 + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{steps.deployment.outputs.page_url}} permissions: contents: read pages: write id-token: write - environment: - name: github-pages - url: ${{steps.deployment.outputs.page_url}} - runs-on: ubuntu-latest - needs: build steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4