Skip to content

[weekly-digest] Filed weekly digest #74

[weekly-digest] Filed weekly digest

[weekly-digest] Filed weekly digest #74

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
deployments: write
concurrency:
group: pages-deploy-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Build static site
run: npm run build
- name: Sync secrets to Cloudflare Pages
if: ${{ env.BUTTONDOWN_API_KEY != '' }}
env:
BUTTONDOWN_API_KEY: ${{ secrets.BUTTONDOWN_API_KEY }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: echo "$BUTTONDOWN_API_KEY" | npx wrangler pages secret put BUTTONDOWN_API_KEY --project-name=proactive-agents
- name: Publish to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: "4"
command: pages deploy ./out --project-name=proactive-agents --branch=${{ github.ref_name }}
- name: Upsert relaycron schedules
if: ${{ env.RELAYCRON_API_KEY != '' }}
env:
RELAYCRON_API_KEY: ${{ secrets.RELAYCRON_API_KEY }}
CRON_WEBHOOK_SECRET: ${{ secrets.CRON_WEBHOOK_SECRET }}
run: npx tsx scripts/register-schedules.ts