Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Dec 1, 2024
1 parent a93a867 commit 0e4726b
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: gh-pages
name: Deploy to GitHub Pages

on:
push:
Expand All @@ -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

Expand All @@ -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

0 comments on commit 0e4726b

Please sign in to comment.