-
Notifications
You must be signed in to change notification settings - Fork 11
38 lines (33 loc) · 1.04 KB
/
prod-deploy.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: v2-deploy-s3-production
on:
push:
paths:
- '**'
branches:
- production
jobs:
run:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REACT_APP_QUEUE_FAUCET: ${{ secrets.REACT_APP_QUEUE_FAUCET }}
REACT_APP_COVALENT_API_KEY: ${{ secrets.REACT_APP_COVALENT_API_KEY }}
REACT_APP_FAUCET_ACCESS_KEY: ${{ secrets.REACT_APP_FAUCET_ACCESS_KEY }}
REACT_APP_FAUCET_SECRET_KEY: ${{ secrets.REACT_APP_FAUCET_SECRET_KEY }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn
- name: Build
run: npm run build
- name: Deploy
uses: reggionick/s3-deploy@v3
with:
folder: build
bucket: ${{ secrets.S3_V2_PROD_BUCKET_NAME }}
bucket-region: ${{ secrets.AWS_REGION }}
invalidation: /
delete-removed: true
no-cache: true
private: true