Theme Styles Broken After Update: GitHub Actions Deploy #1182
-
First of all thanks for maintaining such a wonderful theme and using it happily for a couple years now! Thanks for the great work you do. Theme works wonderfully during
Similar to this discussion issue: #265 name: Deploy Static Site
on:
push:
branches:
- main
env:
BUCKET_NAME: ${{ secrets.BUCKET }}
ROLE_ARN: ${{ secrets.ROLE_ARN }}
CF_DISTRO: ${{ secrets.CF_ID }}
AWS_REGION: "us-east-1"
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.ROLE_ARN }}
role-session-name: ghactions
aws-region: ${{ env.AWS_REGION }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.16.0'
- name: Install dependencies
run: npm install
- name: Build production website
run: npm run build
- name: Sync static site
run: |
cd public/
aws s3 sync . s3://${{ env.BUCKET_NAME }}/ --delete
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ env.CF_DISTRO }} --paths "/*" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thank you for using Doks! Did you push |
Beta Was this translation helpful? Give feedback.
Thank you for using Doks!
Did you push
hugo_stats.json
to your repo? See also the Deploy your Hyas Site to GitHub Pages guide