-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 1.04 KB
/
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
32
33
34
35
36
37
38
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
push:
branches:
- 'main'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v2.5.2
with:
node-version: 17.x
- name: npm install
working-directory: front # front 폴더로 이동
run: npm install
- name: npm build
working-directory: front # front 폴더로 이동
run: npm run build
env:
CI: false
- name: deploy s3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run:
aws s3 sync --delete --region us-east-1 front/build s3://handtalker