add workflow trigger to auto deploy

pull/47/head
lyc8503 2024-07-01 01:27:14 +08:00
parent 62ba220fe9
commit d576251057
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@ name: Deploy to Cloudflare
on:
push:
branches: ['main']
workflow_dispatch:
jobs:
build-and-deploy:

View File

@ -2,6 +2,7 @@ name: Upstream Sync
permissions:
contents: write
actions: write
on:
workflow_dispatch:
@ -48,3 +49,8 @@ jobs:
git add .
git commit -m "Sync latest code from upstream"
git push
- name: Trigger deployment
uses: benc-uk/workflow-dispatch@v1
with:
workflow: deploy.yml