Files
davila7__claude-code-templates/.github/workflows/deploy.yml
dependabot[bot] 6f3706669b chore(deps): bump actions/checkout from 4 to 7
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-25 06:43:46 +00:00

41 lines
1.1 KiB
YAML

name: Deploy to Cloudflare Pages
on:
push:
branches: [main]
paths:
- 'dashboard/**'
permissions:
contents: read
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version: 22
- name: Install dependencies
run: npm install
working-directory: dashboard
- name: Build
run: npm run build
working-directory: dashboard
env:
PUBLIC_CLERK_PUBLISHABLE_KEY: "pk_live_Y2xlcmsuYWl0bXBsLmNvbSQ"
PUBLIC_GITHUB_CLIENT_ID: "Ov23li3KjfA4cuLi5c0k"
PUBLIC_COMPONENTS_JSON_URL: "/components.json"
- name: Deploy www + app.aitmpl.com
run: npx wrangler pages deploy dist --project-name=aitmpl-dashboard --commit-dirty=true
working-directory: dashboard
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}