forked from IncodeTechnologies/welcome-react-example
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 914 Bytes
/
deploy.yml
File metadata and controls
35 lines (31 loc) · 914 Bytes
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: Deploy
on:
push:
branches:
- main
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 }}
VITE_INCODE_API_URL: https://demo-api.incodesmile.com
VITE_INCODE_CLIENT_ID: incode
VITE_INCODE_SDK_URL: https://sdk.incode.com/sdk/onBoarding-1.57.0.js
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: yarn
- name: Build
run: CI=false yarn build
- name: Deploy
uses: reggionick/s3-deploy@v3
with:
folder: dist
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