Skip to content

Commit e30f59c

Browse files
committed
ci: 🚀 add github workflow
1 parent 4dd9493 commit e30f59c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

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

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

0 commit comments

Comments
 (0)