Skip to content

Hub language links, analysis UI polish, and Cloudflare deploy fix #3

Hub language links, analysis UI polish, and Cloudflare deploy fix

Hub language links, analysis UI polish, and Cloudflare deploy fix #3

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
branches: [master, dev]
pull_request:
branches: [master]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- name: Build (production)
if: github.ref == 'refs/heads/master'
run: npm run build
env:
VITE_API_BASE: https://api.bedbase.org/v1
- name: Build (dev)
if: github.ref != 'refs/heads/master'
run: npm run build
env:
VITE_API_BASE: https://api-dev.bedbase.org/v1
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy --project-name=bedbase-ui --branch=${{ github.ref_name }}