Add Forgejo Actions workflow (copied from .github/workflows/deploy.yml)
Some checks failed
Build and deploy / deploy (push) Failing after 2m43s

This commit is contained in:
everestmcarthur 2026-08-21 07:48:44 -04:00
parent 46d9ce7926
commit 7785862d97

View file

@ -0,0 +1,34 @@
name: Build and deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare environment
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install deps
run: npm install
- name: Build plugin(s) and site
run: npm run build
- name: Install API deps
working-directory: api
run: npm install
- name: Deploy to Cloudflare Workers
working-directory: api
env:
CLOUDFLARE_API_KEY: ${{ secrets.CLOUDFLARE_API_KEY }}
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
run: npx wrangler deploy