Skip to content

add s3 upload action #3

add s3 upload action

add s3 upload action #3

Workflow file for this run

on:
push:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# TODO: pick a version?
- uses: jakejarvis/hugo-build-action@master
with:
args: --minify
# so we can inspect what is being produced
- uses: actions/upload-artifact@master
with:
name: website
path: './public'
# upload to s3
- uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.S3_KEY_ID }}
aws_secret_access_key: ${{ secrets.S3_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.S3_BUCKET }}
endpoint: ${{ secrets.S3_ENDPOINT }}
source_dir: './public'