Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
name: deploy
on:
workflow_dispatch:
pull_request:
push:
branches:
- production
on: [push]

jobs:
deploy:
Expand All @@ -14,6 +9,7 @@ jobs:
permissions:
id-token: write
contents: read
deployments: write

steps:
- name: Checkout
Expand Down Expand Up @@ -51,9 +47,10 @@ jobs:
--output=built \
--base=https://frontside.com

- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
- name: Upload To Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
project: frontside
entrypoint: "jsr:@std/http/file-server"
root: built
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy built --project-name=frontside
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
Loading