-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 1.06 KB
/
cf-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
39
40
41
42
43
44
name: CI/CD
on:
push:
branches: [master]
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Run the tests
run: yarn test
- name: Build project
run: yarn build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::639172013776:role/github
aws-region: eu-west-1
- name: Deploy static site to S3 bucket
run: aws s3 sync ./build/ s3://gh-prd-react-ui-cdn-origin --delete