Skip to content

Commit 5e60e6b

Browse files
committed
chore: github action
1 parent afab1b5 commit 5e60e6b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy-example.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deployment CI
2+
3+
on:
4+
push:
5+
branches:
6+
- chore/git-flow
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [14.x]
14+
15+
steps:
16+
- uses: actions/checkout@master
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: npm install packages
24+
run: npm install
25+
26+
- name: build storybook
27+
run: npm run build:storybook
28+
29+
- name: deploy to S3
30+
env:
31+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
32+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
33+
S3_BUCKET: ${{ secrets.S3_BUCKET }}
34+
run: aws s3 cp ./example s3://$S3_BUCKET --acl public-read --recursive --region ap-northeast-2

0 commit comments

Comments
 (0)