Skip to content

Build and Deploy

Build and Deploy #6

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [main]
paths:
- 'README.md'
- 'Past Events/**'
- 'Meetups/**'
- 'website/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-node@v6.3.0
with:
node-version: '24'
cache: 'npm'
cache-dependency-path: website/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: website
- name: Build site
run: npm run build
working-directory: website
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3.1.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=devevents --branch=main
workingDirectory: website