ssg.md/.forgejo/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: Line: 10 Column 5: Failed to match job-factory: Line: 12 Column 9: Failed to match run-step: Line: 13 Column 14: Unknown Variable Access gitea Line: 13 Column 14: Unknown Variable Access gitea Line: 13 Column 14: Unknown Variable Access gitea Line: 12 Column 9: Failed to match regular-step: Line: 13 Column 9: Unknown Property run Line: 10 Column 5: Failed to match workflow-job: Line: 11 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
satr14 d1d270b13e
Some checks failed
Build and Deploy / deploy (push) Failing after 1s
remove env
2026-06-06 09:45:47 +07:00

25 lines
626 B
YAML

name: Build and Deploy
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
deploy:
runs-on: aio
steps:
- name: Checkout
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }} . && git checkout ${{ gitea.sha }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
run: bun run build
- name: Deploy to Cloudflare Workers
run: bunx wrangler deploy --assets=./dist
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}