Skip to content

Add CI

Add CI #1

Workflow file for this run

name: πŸ’š CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
name: πŸš€ Deploy
runs-on: ubuntu-latest
steps:
- name: πŸ” Checkout
uses: actions/checkout@v4
- name: πŸ“¦ Setup pnpm
uses: pnpm/action-setup@v4
- name: 🐒 Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: ./pnpm-lock.yaml
- name: πŸ“¦ Install dependencies
run: pnpm install --frozen-lockfile
- name: πŸŒ₯️ Deploy to Cloudflare
run: pnpm run deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}