From f8ff3a2c46fd34d9278bf1b27e52277d7d5fca25 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 12 Jul 2026 12:59:27 +0900 Subject: [PATCH] ci: chain release build into production deploy --- .gitea/workflows/deploy-prod.yml | 6 ++++-- .gitea/workflows/prepare-release.yml | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-prod.yml b/.gitea/workflows/deploy-prod.yml index 65c86524..f02fff9e 100644 --- a/.gitea/workflows/deploy-prod.yml +++ b/.gitea/workflows/deploy-prod.yml @@ -1,8 +1,9 @@ name: Deploy to Production on: - push: - branches: [main] + workflow_run: + workflows: [Prepare Release] + types: [completed] workflow_dispatch: inputs: release: @@ -24,6 +25,7 @@ env: jobs: deploy: name: Deploy to Production + if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest timeout-minutes: 30 outputs: diff --git a/.gitea/workflows/prepare-release.yml b/.gitea/workflows/prepare-release.yml index 599dc31a..05fc98a1 100644 --- a/.gitea/workflows/prepare-release.yml +++ b/.gitea/workflows/prepare-release.yml @@ -1,6 +1,8 @@ name: Prepare Release on: + push: + branches: [main] workflow_dispatch: inputs: version: