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