-
-
Notifications
You must be signed in to change notification settings - Fork 26
35 lines (33 loc) · 982 Bytes
/
prod-client.yaml
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
name: prod-client
on:
push:
paths:
- 'client/**'
branches:
- 'master'
jobs:
test:
name: deploy client
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
CI: true
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: make install
working-directory: client
- name: create .env from secrets manager
run: ENV_ID=${{ secrets.PROD_ENV_ID }} make get-secrets ENV=prod
working-directory: client
- name: build bundle
run: make build
working-directory: client
- name: sync build to s3
run: ENV_ID=${{ secrets.PROD_ENV_ID }} make sync ENV=prod
working-directory: client
- name: empty cache
run: ENV_ID=${{ secrets.PROD_ENV_ID }} make empty-cache ENV=prod
working-directory: client