From c01c6c990e19da5332d113e352c1fca2e9f1cf86 Mon Sep 17 00:00:00 2001 From: DevOps Date: Tue, 9 Jun 2026 20:25:32 +0200 Subject: [PATCH] ci: CD auto-deploy via workflow_run trigger - 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 --- .gitea/workflows/deploy.yaml | 5 +++++ README.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 9c648ca..bfff950 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 diff --git a/README.md b/README.md index 64f1dbe..467e1f7 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Nexus is the operations platform for the Noveria ecosystem. OpenClaw is an adapter-backed agent runtime, not a dependency of the frontend or domain model. +> CI/CD auto-deploy enabled — every push to main triggers build → test → deploy. + ## Current foundation - Vue 3, TypeScript, Pinia, Vue Router and Tailwind CSS