-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.1 KB
/
workflow-dev.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
name: (DEV) S3 Deploy and CF Invalidation
on:
push:
branches:
- dev
jobs:
run:
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
environment: dev
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
REACT_APP_ALCHEMY_RPC_URL_MAINNET: ${{ secrets.REACT_APP_ALCHEMY_RPC_URL_MAINNET }}
REACT_APP_ALCHEMY_RPC_URL_ARBITRUM: ${{ secrets.REACT_APP_ALCHEMY_RPC_URL_ARBITRUM }}
REACT_APP_ENV: ${{ vars.REACT_APP_ENV }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Deploy
uses: Propy/s3-deploy@v3
with:
folder: build
bucket: ${{ secrets.S3_BUCKET }}
bucket-region: ${{ secrets.S3_BUCKET_REGION }}
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: "/*"
delete-removed: true
no-cache: true
private: true
filesToInclude: ".*/*,*/*,**"