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]
|
||||
paths:
|
||||
- 'seedbox/**'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@@ -44,7 +45,7 @@ jobs:
|
||||
echo "Validation complete."
|
||||
|
||||
- name: Deploy to seedbox
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
run: |
|
||||
ssh -o StrictHostKeyChecking=accept-new debian@seedbox.taila5ad8.ts.net << 'ENDSSH'
|
||||
set -e
|
||||
@@ -80,7 +81,7 @@ jobs:
|
||||
ENDSSH
|
||||
|
||||
- name: Deployment summary
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
run: |
|
||||
echo "✅ Deployment complete!"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user