File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments