-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (33 loc) · 1.03 KB
/
s3_deploy_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: workflow for S3 Deploy Develop
on:
push:
branches:
- develop
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_API_URL: ${{secrets.REACT_APP_API_URL_DEV}}
REACT_APP_ENV: ${{secrets.REACT_APP_ENV_DEV}}
REACT_APP_SENTRY_DSN: ${{secrets.REACT_APP_SENTRY_DSN}}
VITE_APP_API_URL: ${{secrets.VITE_APP_API_URL_DEV}}
VITE_TOKEN: ${{secrets.VITE_TOKEN}}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: npm i
- name: Build dev
run: npm run build
- name: Deploy
uses: reggionick/s3-deploy@v3
with:
folder: dist
bucket: ${{ secrets.S3_BUCKET_DEV }}
bucket-region: ${{secrets.DEFAULT_BUCKET_REGION}}
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_DEV }}
invalidation: /*
delete-removed: true
no-cache: true
private: true