feat: add deploy workflow
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 48s

This commit is contained in:
uku 2024-10-21 17:19:06 +02:00
parent 32af8cd086
commit 6f6cd270eb
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

@ -0,0 +1,26 @@
name: deploy to cloudflare pages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Build
run: |
bun install --frozen-lockfile
bun run build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy