Add agentic workflow layer with composable phases (#4159) #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Notify Deployment | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'app/**' | |
| - 'api/**' | |
| - 'core/**' | |
| - 'pyproject.toml' | |
| permissions: | |
| contents: read | |
| deployments: write | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| app: ${{ steps.filter.outputs.app }} | |
| api: ${{ steps.filter.outputs.api }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| app: | |
| - 'app/**' | |
| api: | |
| - 'api/**' | |
| - 'core/**' | |
| - 'pyproject.toml' | |
| app: | |
| needs: changes | |
| if: needs.changes.outputs.app == 'true' | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: app | |
| url: https://pyplots.ai | |
| steps: | |
| - run: echo "Frontend deployed via Cloud Build" | |
| api: | |
| needs: changes | |
| if: needs.changes.outputs.api == 'true' | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: api | |
| url: https://api.pyplots.ai/docs | |
| steps: | |
| - run: echo "API deployed via Cloud Build" |