ssg.md/.forgejo/workflows/deploy.yml
Workflow config file is invalid. Please check your config file: Line: 13 Column 5: Failed to match job-factory: Line: 15 Column 9: Failed to match run-step: Line: 16 Column 14: Unknown Variable Access gitea Line: 16 Column 14: Unknown Variable Access gitea Line: 16 Column 14: Unknown Variable Access gitea Line: 15 Column 9: Failed to match regular-step: Line: 16 Column 9: Unknown Property run Line: 13 Column 5: Failed to match workflow-job: Line: 14 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
satr14 2a14c3dccc
Some checks failed
Build and Deploy / deploy (push) Failing after 0s
deploy script fix
2026-06-04 13:56:15 +07:00

28 lines
693 B
YAML

name: Build and Deploy
on:
workflow_dispatch:
push:
branches: [ main ]
env:
PATH: /run/current-system/sw/bin:/run/wrappers/bin
jobs:
deploy:
runs-on: self-hosted
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 }}