-
Notifications
You must be signed in to change notification settings - Fork 29
53 lines (44 loc) · 1.28 KB
/
front-dev.yml
File metadata and controls
53 lines (44 loc) · 1.28 KB
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
45
46
47
48
49
50
51
52
53
name: front deploy for dev
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
- name: Use node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache Yarn cache
id: cache-yarn
uses: actions/cache@v3
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Clean Dependencies
if: steps.cache-yarn.outputs.cache-hit != 'true'
run: |
cd frontend
yarn cache clean
rm -rf node_modules
- name: Install Dependencies
if: steps.cache-yarn.outputs.cache-hit != 'true'
run: |
cd frontend
yarn install --frozen-lockfile --check-files
- name: Build
run: |
cd frontend
yarn build:dev
env:
CI: false
- name: Deploy to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 cp --recursive --region ap-northeast-2 frontend/build s3://prolog-dev-deploy