-
-
Notifications
You must be signed in to change notification settings - Fork 34
51 lines (44 loc) · 1007 Bytes
/
prepare.yml
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
name: Apps Monorepo Deployment
on:
push:
branches:
- dev
- staging
- main
jobs:
changes:
name: Path filter
runs-on: ubuntu-latest
outputs:
www: ${{ steps.filter.outputs.www }}
app: ${{ steps.filter.outputs.app }}
steps:
- name: Checkout
uses: 'actions/checkout@v3'
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
filters: |
www:
- '.env.*'
- 'apps/www/**'
- 'packages/**'
app:
- '.env.*'
- 'apps/app/**'
- 'packages/**'
www-deploy:
needs: changes
if: ${{ needs.changes.outputs.www == 'true' }}
secrets: inherit
uses: ./.github/workflows/deploy-cloudrun.yaml
with:
APP_NAME: www
app-deploy:
needs: changes
if: ${{ needs.changes.outputs.app == 'true' }}
secrets: inherit
uses: ./.github/workflows/deploy-cloudrun.yaml
with:
APP_NAME: app