2022-10-15 18:37:01 -07:00
|
|
|
name: Deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
2022-10-15 18:40:46 -07:00
|
|
|
name: Build and Deploy
|
2022-10-15 18:37:01 -07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-16 08:51:32 -07:00
|
|
|
- uses: actions/checkout@v3
|
2022-10-15 18:37:01 -07:00
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
hugo-version: '0.104.3'
|
|
|
|
extended: true
|
|
|
|
|
|
|
|
- name: Hugo Build
|
|
|
|
run: hugo --minify
|
|
|
|
|
|
|
|
- name: Configure AWS Credentials
|
2022-10-16 08:57:39 -07:00
|
|
|
uses: aws-actions/configure-aws-credentials@v1-node16
|
2022-10-15 18:37:01 -07:00
|
|
|
with:
|
|
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
aws-region: us-east-1
|
|
|
|
|
|
|
|
- name: Deploy to S3
|
|
|
|
run: hugo deploy --maxDeletes -1 --invalidateCDN
|
|
|
|
|