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: on:
push: push:
branches: ['main'] branches: ['main']
workflow_dispatch:
jobs: jobs:
build-and-deploy: build-and-deploy:

View File

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