Skip to content

deploy: Cloudflare deployment skeleton for api.interscript.org #1

deploy: Cloudflare deployment skeleton for api.interscript.org

deploy: Cloudflare deployment skeleton for api.interscript.org #1

Workflow file for this run

name: deploy
on:
push:
branches: [main]
tags: ["v*"]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "22" }
- run: npm install
- name: Deploy (staging on main, production on tags)
run: npx wrangler deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}