Skip to content

fix: SEO HTML and potential hydration errors #63

fix: SEO HTML and potential hydration errors

fix: SEO HTML and potential hydration errors #63

Workflow file for this run

name: S3 Deploy - Main
on:
push:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
environment: Main
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: npm i
- name: Build
run: npm run generate
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.S3_BUCKET_REGION }}
- name: Deploy cached files
run: aws s3 sync ./.output/public s3://${{ secrets.S3_BUCKET }}/ --include "*" --exclude "index.html" --exclude "*/*.html" --exclude "sitemap.xml" --exclude "rss.xml" --exclude "Gonzalo_Hirsch-Software_Engineer-CV.pdf" --exclude "api/*" --cache-control max-age=31536000,public,immutable --delete
- name: Deploy non-cached files
run: aws s3 sync ./.output/public s3://${{ secrets.S3_BUCKET }}/ --exclude "*" --include "index.html" --include "*/*.html" --include "sitemap.xml" --include "rss.xml" --include "Gonzalo_Hirsch-Software_Engineer-CV.pdf" --include "api/*" --cache-control max-age=0,public,must-revalidate --delete
- name: Invalidate dashboard cloudfront
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths "/*"