feat(ci): add workflow_dispatch for manual trigger
Allows manual execution from Gitea Actions UI
This commit is contained in:
@@ -9,6 +9,7 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
paths:
|
paths:
|
||||||
- 'seedbox/**'
|
- 'seedbox/**'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -44,7 +45,7 @@ jobs:
|
|||||||
echo "Validation complete."
|
echo "Validation complete."
|
||||||
|
|
||||||
- name: Deploy to seedbox
|
- name: Deploy to seedbox
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
run: |
|
run: |
|
||||||
ssh -o StrictHostKeyChecking=accept-new debian@seedbox.taila5ad8.ts.net << 'ENDSSH'
|
ssh -o StrictHostKeyChecking=accept-new debian@seedbox.taila5ad8.ts.net << 'ENDSSH'
|
||||||
set -e
|
set -e
|
||||||
@@ -80,7 +81,7 @@ jobs:
|
|||||||
ENDSSH
|
ENDSSH
|
||||||
|
|
||||||
- name: Deployment summary
|
- name: Deployment summary
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
run: |
|
run: |
|
||||||
echo "✅ Deployment complete!"
|
echo "✅ Deployment complete!"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user