Skip to content

omfj/send email on deleted event and update deps (#54) #499

omfj/send email on deleted event and update deps (#54)

omfj/send email on deleted event and update deps (#54) #499

Workflow file for this run

name: πŸš€ Deploy to production
on:
push:
branches:
- main
jobs:
deploy-web:
name: πŸš€ Deploy web to Cloudflare
runs-on: ubuntu-latest
env:
RESEND_API_KEY: ${{ secrets.RESEND_API_KEY }}
PUBLIC_GITHUB_SHA: ${{ github.sha }}
PUBLIC_CLOUDFLARE_TURNSTILE_SITE_KEY: ${{ secrets.PUBLIC_CLOUDFLARE_TURNSTILE_SITE_KEY }}
CLOUDFLARE_TURNSTILE_SECRET_KEY: ${{ secrets.CLOUDFLARE_TURNSTILE_SECRET_KEY }}
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: πŸš€ Run migrations
run: pnpm --filter=web run db:migrate --remote
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
- name: πŸš€ Deploy web
run: pnpm --filter=web run deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
deploy-sanity:
name: πŸš€ Deploy CMS to Sanity
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 CMS
run: pnpm --filter=cms run deploy
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}