-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·31 lines (29 loc) · 895 Bytes
/
Copy pathnodejs.yml
File metadata and controls
executable file
·31 lines (29 loc) · 895 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
name: Node CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-south-1
- name: yarn live
uses: borales/actions-yarn@v2.0.0
with:
cmd: install && yarn build
- name: push to s3
run: aws s3 sync build/ s3://igenscode --delete && aws cloudfront create-invalidation --distribution-id E17L31NP4XL2U --paths /index.html /error.html