add workflow trigger to auto deploy
parent
62ba220fe9
commit
d576251057
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue