We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afab1b5 commit 5e60e6bCopy full SHA for 5e60e6b
.github/workflows/deploy-example.yml
@@ -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