Skip to content

feat: split publish action to two steps #3

feat: split publish action to two steps

feat: split publish action to two steps #3

Workflow file for this run

name: Build and Publish to AWS
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: taiki-e/install-action@v2
with:
tool: zola@0.17.2
- name: Build
run: zola build
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: reggionick/s3-deploy@v4
with:
folder: public
bucket: ${{ secrets.S3_BUCKET }}
dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
invalidation: /
private: true
bucket-region: us-east-1