-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.07 KB
/
notify-deployment.yml
File metadata and controls
54 lines (49 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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@v4
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://anyplot.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.anyplot.ai/docs
steps:
- run: echo "API deployed via Cloud Build"