Skip to content

Commit

Permalink
WIP: Upgrade Hugo
Browse files Browse the repository at this point in the history
The latest Hugo builds do not include deployment functionality any more.
Use aws cli instead.
  • Loading branch information
marchof committed Dec 25, 2024
1 parent 7689794 commit 0dfacb4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ jobs:
- name: Setup HUGO
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.136.5'
hugo-version: '0.140.1'
- name: Render
working-directory: 'site'
run: hugo
- name: Deploy
working-directory: 'site'
run: hugo deploy --invalidateCDN
- name: Upload Content
run: aws s3 sync site/public s3://javaalmanac.io/ --delete
env:
AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}'
Expand Down

0 comments on commit 0dfacb4

Please sign in to comment.