Skip to content

Commit 070ce14

Browse files
feat(ci): add GitHub Actions workflow for deployment notifications
- Create notify-deployment.yml for deployment notifications - Filter changes for app and api directories - Define jobs for frontend and API deployment
1 parent a2b41fa commit 070ce14

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Notify Deployment
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'app/**'
8+
- 'api/**'
9+
- 'core/**'
10+
- 'pyproject.toml'
11+
12+
jobs:
13+
changes:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
app: ${{ steps.filter.outputs.app }}
17+
api: ${{ steps.filter.outputs.api }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: dorny/paths-filter@v3
21+
id: filter
22+
with:
23+
filters: |
24+
app:
25+
- 'app/**'
26+
api:
27+
- 'api/**'
28+
- 'core/**'
29+
- 'pyproject.toml'
30+
31+
app:
32+
needs: changes
33+
if: needs.changes.outputs.app == 'true'
34+
runs-on: ubuntu-latest
35+
environment:
36+
name: app
37+
url: https://pyplots.ai
38+
steps:
39+
- run: echo "Frontend deployed via Cloud Build"
40+
41+
api:
42+
needs: changes
43+
if: needs.changes.outputs.api == 'true'
44+
runs-on: ubuntu-latest
45+
environment:
46+
name: api
47+
url: https://api.pyplots.ai
48+
steps:
49+
- run: echo "API deployed via Cloud Build"

0 commit comments

Comments
 (0)