Add Forgejo Actions workflow (copied from .github/workflows/deploy.yml)
Some checks failed
Build and deploy / deploy (push) Failing after 2m43s
Some checks failed
Build and deploy / deploy (push) Failing after 2m43s
This commit is contained in:
parent
46d9ce7926
commit
7785862d97
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/deploy.yml
Normal file
34
.forgejo/workflows/deploy.yml
Normal 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
|
||||
Loading…
Add table
Reference in a new issue