diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index 486f4c6..64c186e 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -11,6 +11,22 @@ env: VPS_UPDATES_DIR: /var/www/updates jobs: + changes: + name: Detect changes + runs-on: ubuntu-latest + outputs: + convex: ${{ steps.filter.outputs.convex }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Paths filter + id: filter + uses: dorny/paths-filter@v3 + with: + filters: | + convex: + - 'convex/**' + deploy: name: Deploy (VPS Linux) if: ${{ startsWith(github.ref, 'refs/heads/') }} @@ -61,7 +77,8 @@ jobs: convex_deploy: name: Deploy Convex functions - needs: deploy + needs: [deploy, changes] + if: ${{ needs.changes.outputs.convex == 'true' }} runs-on: [ self-hosted, linux, vps ] env: APP_DIR: /srv/apps/sistema