Skip to content

feat: implement tip discrepancy detection and integrate it across the… #2

feat: implement tip discrepancy detection and integrate it across the…

feat: implement tip discrepancy detection and integrate it across the… #2

Workflow file for this run

name: Deploy Docs Site
on:
push:
branches: [main]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'
cache-dependency-path: docs/site/package-lock.json
- name: Install dependencies
working-directory: docs/site
run: npm ci
- name: Build site
working-directory: docs/site
run: npm run build
- name: Create project if needed
uses: cloudflare/wrangler-action@v3
continue-on-error: true
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages project create hone-fyi --production-branch=main
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/site/_site --project-name=hone-fyi --commit-dirty=true