Skip to content

Commit 80bfb50

Browse files
authored
Merge pull request #4 from webduinoio/support/3749
Support 3749
2 parents 4dd9493 + a3c6b55 commit 80bfb50

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy-to-s3.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy to Amazon S3
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v1
19+
20+
- name: Upload to S3 Bucket
21+
uses: jakejarvis/s3-sync-action@master
22+
with:
23+
args: --follow-symlinks --delete
24+
env:
25+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
26+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
27+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
28+
AWS_REGION: "ap-northeast-2"
29+
SOURCE_DIR: "docs"

0 commit comments

Comments
 (0)