This commit is contained in:
1 parent
f5e0ec64e4
commit
a0265efe6d
17 files changed
+4061
-18
No files matched your search
@@ -0,0 +1,28 @@
|
||||
name: Build & Deploy (CF Workers)
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Set up pnpm
|
||||
uses: pnpm/setup@v1
|
||||
with:
|
||||
version: 11
|
||||
runtime: node@24
|
||||
cache: true
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- name: Deploy to Cloudflare Workers
|
||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
run: pnpm exec wrangler deploy --message "${{ github.sha }}"
|
||||
Reference in new issue
Block a user