ci: CD auto-deploy via workflow_run trigger
CI - Build & Test / Backend (.NET) (push) Successful in 27s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 16s
CI - Build & Test / Security Check (push) Successful in 3s

- deploy.yaml now triggers automatically after successful CI completion
- Adds workflow_run event listener for 'CI - Build & Test'
- Guards deploy to only run when CI conclusion == success
- Preserves manual workflow_dispatch for targeted deploys
- Adds CI/CD note to README
This commit is contained in:
2026-06-09 20:25:32 +02:00
parent cff73600b5
commit c01c6c990e
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -2,6 +2,10 @@ name: Deploy to Production
run-name: 🚀 Deploy ${{ inputs.bump_version || 'patch' }} by @${{ gitea.actor }}
on:
workflow_run:
workflows: ["CI - Build & Test"]
types: [completed]
branches: [main]
workflow_dispatch:
inputs:
bump_version:
@@ -28,6 +32,7 @@ jobs:
deploy:
name: Deploy Nexus
runs-on: deploy # only on runners with 'deploy' label
if: ${{ gitea.event_name != 'workflow_run' || gitea.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout latest code
uses: actions/checkout@v3