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 }}