Skip to content

Commit

Permalink
chore(ci): integrate Cloudflare Pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
nomyfan committed Apr 22, 2024
1 parent 713ba8d commit 43b2bbd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ env:
CARGO_TERM_COLOR: always

jobs:
test_build:
build:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -53,3 +56,13 @@ jobs:
- name: Build web app
working-directory: ./app/gameboy
run: corepack pnpm run build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: gbplay
directory: dist
workingDirectory: app/gameboy
wranglerVersion: "3"

0 comments on commit 43b2bbd

Please sign in to comment.