-
-
Notifications
You must be signed in to change notification settings - Fork 34
55 lines (47 loc) · 1.15 KB
/
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
52
53
54
55
# name: Menthor Apps Deployment
# on:
# push:
# branches:
# - main
# permissions:
# id-token: write
# contents: read
# jobs:
# changes:
# name: Path filter
# runs-on: ubuntu-latest
# outputs:
# app: ${{ steps.filter.outputs.app }}
# www: ${{ steps.filter.outputs.www }}
# steps:
# - name: Checkout
# uses: 'actions/checkout@v3'
# - uses: dorny/paths-filter@v2
# id: filter
# with:
# base: ${{ github.ref }}
# filters: |
# app:
# - '.env.*'
# - 'apps/app/**'
# - 'packages/**'
# www:
# - '.env.*'
# - 'apps/www/**'
# - 'packages/**'
# app-deploy:
# needs: changes
# if: ${{ needs.changes.outputs.app == 'true' }}
# secrets: inherit
# uses: ./.github/workflows/deploy.yml
# with:
# APP_NAME: app
# BUCKET: s3://menthor.io-app/app
# www-deploy:
# needs: changes
# if: ${{ needs.changes.outputs.www == 'true' }}
# secrets: inherit
# uses: ./.github/workflows/deploy.yml
# with:
# APP_NAME: www
# BUCKET: s3://menthor.io