2020-07-30 02:19:00 +00:00
|
|
|
name: Deploy
|
|
|
|
|
|
|
|
on:
|
2020-07-30 02:21:37 +00:00
|
|
|
push:
|
|
|
|
branches: master
|
2020-07-30 02:19:00 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js environment
|
|
|
|
uses: actions/setup-node@v1.4.1
|
|
|
|
with:
|
|
|
|
node-version: 11.x
|
|
|
|
- name: Setup AWS CLI
|
|
|
|
uses: chrislennon/action-aws-cli@1.1
|
|
|
|
- name: Hugo setup
|
|
|
|
uses: peaceiris/actions-hugo@v2.4.12
|
|
|
|
with:
|
|
|
|
extended: false
|
|
|
|
- name: Deploy
|
|
|
|
env:
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
|
2020-07-30 02:23:01 +00:00
|
|
|
AWS_DEFAULT_REGION: us-east1
|
2020-07-30 02:19:00 +00:00
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
|
|
|
|
run: |
|
2020-07-30 02:24:16 +00:00
|
|
|
aws s3 sync ./docs s3://conductor.5sigma.io --delete;
|