From 43ef2bc239e7018056e796ee0b79200707222620 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Thu, 9 Oct 2025 16:30:41 -0300 Subject: [PATCH] =?UTF-8?q?ci:=20permitir=20workflow=5Fdispatch=20com=20fo?= =?UTF-8?q?rce=20deploy=20(web/convex)\n\n-=20Adiciona=20gatilho=20manual?= =?UTF-8?q?=20e=20inputs=20para=20for=C3=A7ar=20deploy=20sem=20depender=20?= =?UTF-8?q?do=20paths-filter.\n-=20Mant=C3=A9m=20filtros=20por=20push=20co?= =?UTF-8?q?mo=20antes.\n-=20=C3=9Atil=20para=20reexecutar=20deploy=20ap?= =?UTF-8?q?=C3=B3s=20ajustes=20no=20pr=C3=B3prio=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd-web-desktop.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index 5ce9b80..79fc07a 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -5,6 +5,16 @@ on: branches: [ main ] tags: - 'v*.*.*' + workflow_dispatch: + inputs: + force_web_deploy: + description: 'Forçar deploy do Web (ignorar filtro)?' + required: false + default: 'false' + force_convex_deploy: + description: 'Forçar deploy do Convex (ignorar filtro)?' + required: false + default: 'false' env: APP_DIR: /srv/apps/sistema @@ -41,7 +51,7 @@ jobs: deploy: name: Deploy (VPS Linux) needs: changes - if: ${{ startsWith(github.ref, 'refs/heads/') && needs.changes.outputs.web == 'true' }} + if: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.force_web_deploy == 'true') || (startsWith(github.ref, 'refs/heads/') && needs.changes.outputs.web == 'true') }} runs-on: [ self-hosted, linux, vps ] steps: - name: Checkout @@ -105,7 +115,7 @@ jobs: convex_deploy: name: Deploy Convex functions needs: changes - if: ${{ needs.changes.outputs.convex == 'true' }} + if: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.force_convex_deploy == 'true') || needs.changes.outputs.convex == 'true' }} runs-on: [ self-hosted, linux, vps ] env: APP_DIR: /srv/apps/sistema