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: