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