Skip to content

Commit 08ed9ad

Browse files
authored
Merge pull request #63 from kimcoder/chore/git-flow
chore: github action for deploy example page
2 parents f380bdb + 8e63c8f commit 08ed9ad

File tree

4 files changed

+16143
-4669
lines changed

4 files changed

+16143
-4669
lines changed

.github/workflows/deploy-example.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deployment CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
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 package
27+
run: npm run build
28+
29+
- name: build example
30+
run: npm run example:build
31+
32+
- name: deploy to S3
33+
env:
34+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
35+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
36+
S3_BUCKET: ${{ secrets.S3_BUCKET }}
37+
run: aws s3 cp ./example s3://$S3_BUCKET --acl public-read --recursive --region ap-northeast-2

0 commit comments

Comments
 (0)