Add deployment workflows for website and app

This commit is contained in:
Mohamed Boudra
2026-01-14 18:36:51 +07:00
parent 92e141f19c
commit 358b9aded9
2 changed files with 66 additions and 0 deletions

34
.github/workflows/deploy-app.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: Deploy App
on:
push:
branches: [main]
paths:
- 'packages/app/**'
- 'packages/server/src/**'
- '.github/workflows/deploy-app.yml'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm install --workspace=@paseo/app --include-workspace-root
- name: Typecheck
run: npm run typecheck --workspace=@paseo/app
- name: Build and deploy to Cloudflare Pages
run: npm run deploy:web --workspace=@paseo/app
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: 10ed39a1dbf316e30abd0c409bed40d6

32
.github/workflows/deploy-website.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Deploy Website
on:
push:
branches: [main]
paths:
- 'packages/website/**'
- '.github/workflows/deploy-website.yml'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm install --workspace=@paseo/website --include-workspace-root
- name: Typecheck
run: npm run typecheck --workspace=@paseo/website
- name: Deploy to Cloudflare Workers
run: npm run deploy --workspace=@paseo/website
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}