Skip to content
Merged
Show file tree
Hide file tree
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
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy

on:
push:
branches:
- main
paths:
- 'website/**'
- '.github/workflows/deploy.yml'
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: website/package-lock.json

- name: Install dependencies
run: npm ci

- name: Build site
run: npm run build

- name: Deploy to Cloudflare
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: website
command: deploy
9 changes: 9 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,14 @@ website/
GitHub Actions workflows in `.github/workflows/`:

- **build.yml** - Build validation on push/PR
- **deploy.yml** - Deploy to Cloudflare Pages on push to main
- **commit-lint.yml** - Validate PR titles follow conventional commits
- **contributors.yml** - Auto-update contributors in README

## Deployment

The site is deployed to Cloudflare Pages using Wrangler.

- **Configuration:** `website/wrangler.toml`
- **Deploy trigger:** Push to main (changes to `website/**`)
- **Required secret:** `CLOUDFLARE_API_TOKEN`
5 changes: 5 additions & 0 deletions website/wrangler.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name = "dtvem-io"
compatibility_date = "2024-12-01"

[assets]
directory = "./dist"