add deployment targets #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Hugo | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build_and_deploy: | |
name: Deploy Hugo Website | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: setup hugo | |
uses: peaceiris/actions-hugo@v2.6.0 | |
with: | |
hugo-version: '0.129.0' | |
- name: build site | |
run: hugo | |
- name: deploy to s3 | |
run: hugo deploy --force --maxDeletes -1 | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.SCW_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.SCW_SECRET_ACCESS_KEY }} |