This commit is contained in:
nexryai
2026-01-09 11:56:31 +00:00
committed by GitHub
parent 7db8fc21e5
commit 7d0af73c82
+42
View File
@@ -0,0 +1,42 @@
name: Deploy CI
on:
push:
branches: ["nightly"]
permissions: {}
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
working-directory: cdn
run: pnpm install
- name: Build with tsc
working-directory: cdn
run: pnpm build
- name: Deploy to Cloudflare Workers
working-directory: cdn
run: pnpm run deploy
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}