-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (31 loc) · 907 Bytes
/
CD.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
---
name: Deployment
on:
push:
branches: [ main ]
jobs:
build-and-deploy-app:
runs-on: ubuntu-latest
steps:
- name: Checkout develop
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install node
run: npm install --legacy-peer-deps
- name: Production Build
run: npm run build
- name: Deploy to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
SOURCE_DIR: 'dist/apps/the-au-pair'