Skip to content

feat: implement 8 outcome-driven UI flows (#68) #7

feat: implement 8 outcome-driven UI flows (#68)

feat: implement 8 outcome-driven UI flows (#68) #7

Workflow file for this run

name: Deploy Pages
on:
workflow_dispatch:
push:
branches: [main]
paths:
- 'ui/**'
- '.github/workflows/deploy-pages.yml'
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: ui/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: ui
- name: Build
run: npm run build
working-directory: ui
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=chittycommand-ui
workingDirectory: ui