-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 886 Bytes
/
main.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
name: Upload Website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
name: Checkout
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build project
run: |
# install yarn since we use yarn for lockfiles
npm install -g yarn
yarn install
yarn build
- name: Deploy static site to S3 bucket
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: aws s3 sync ./dist s3://www.mikedidomizio.com --exclude "package*.json" --acl public-read