diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 9262222..6346985 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,4 +1,4 @@ -name: gh-pages +name: Deploy to GitHub Pages on: push: @@ -13,15 +13,15 @@ on: workflow_dispatch: jobs: - deploy: + build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 + - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a311bd71901bbe5b1630ceea73d27597364c9af683d1956744 # v4.2.2 with: fetch-depth: 1 - name: Setup Bun - uses: oven-sh/setup-bun@a1800f471a0bc25cddac36bb13e6f436ddf341d7 # v1 + uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2.0.1 with: bun-version: latest @@ -33,8 +33,25 @@ jobs: env: VITE_HOMEPAGE: https://idleberg.github.io/playdate-arcade-fonts - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 + - name: Upload Artifacts + uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./build + path: 'build/' + + deploy: + needs: build + runs-on: ubuntu-latest + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 +