Skip to content

Commit

Permalink
chore: update hugo (#3)
Browse files Browse the repository at this point in the history
* chore: update hugo

* fix: update hugo file output name

* fix: use amd instead of arm

* chore: update paper theme

* docs: add doc on how to upgrade hugo
  • Loading branch information
antoinedelia authored Sep 2, 2024
1 parent b2ebb45 commit 2f8a22e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ jobs:
- name: Build
uses: actions/setup-node@v2
if: steps.filter.outputs.web == 'true'
- run: sudo wget https://github.com/gohugoio/hugo/releases/download/v0.99.0/hugo_extended_0.99.0_Linux-64bit.deb
- run: sudo dpkg --install ./hugo_extended_0.99.0_Linux-64bit.deb
- run: sudo wget https://github.com/gohugoio/hugo/releases/download/v0.133.1/hugo_extended_0.133.1_linux-amd64.deb -O hugo.deb
- run: sudo dpkg --install ./hugo.deb
- run: hugo

- name: Deploy to AWS
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,19 @@ The blog is hosted on AWS using the following services:
On new commits, a GitHub Action job will deploy the new infrastructure via Terraform (if any changes were detected), build the Hugo website and deploy its content to AWS S3 (again, if new changes are detected).

![Automatic deploy static website AWS drawio](https://github.com/antoinedelia/cloud-antoine-delia/assets/7138350/d0878545-22f1-42c8-8b04-aca4a932aaee)

## Upgrade

### Hugo

To upgrade Hugo, edit the `main.yml` file with [hugo's latest release](https://github.com/gohugoio/hugo/releases):
```yml
# Replace this URL with a newer version
- run: sudo wget https://github.com/gohugoio/hugo/releases/download/v0.133.1/hugo_extended_0.133.1_linux-amd64.deb -O hugo.deb
```
Make sure to update the hugo's theme as well:
```sh
git submodule init
git submodule update --remote --merge
```
2 changes: 1 addition & 1 deletion cloud/themes/paper
Submodule paper updated 57 files
+0 −1 .prettierignore
+1 −1 .prettierrc.js
+0 −1 .stylelintignore
+0 −12 .stylelintrc.js
+1 −1 LICENSE
+93 −28 README.md
+81 −626 assets/app.css
+2,014 −0 assets/main.css
+1 −1 exampleSite/README.md
+14 −1 exampleSite/config.toml
+5 −5 exampleSite/content/about.md
+1 −1 exampleSite/content/archives.md
+10 −0 exampleSite/content/contact.md
+8 −4 exampleSite/content/post/emoji-support.md
+32 −24 exampleSite/content/post/markdown-syntax.md
+9 −10 exampleSite/content/post/math-typesetting.md
+4 −1 exampleSite/content/post/placeholder-text.md
+2 −2 exampleSite/content/post/rich-content.md
+3 −0 go.mod
+5 −0 i18n/be.yaml
+5 −0 i18n/bn.yaml
+13 −0 i18n/fa.yaml
+5 −0 i18n/fr.yaml
+5 −0 i18n/it.yaml
+5 −0 i18n/oc.yaml
+5 −0 i18n/sw.yaml
+ images/pagespeed.png
+ images/screenshot.png
+ images/screenshot_dark.png
+ images/screenshot_mobile.png
+ images/tn.png
+5 −1 layouts/404.html
+42 −9 layouts/_default/baseof.html
+59 −14 layouts/_default/list.html
+97 −19 layouts/_default/single.html
+21 −6 layouts/partials/footer.html
+73 −35 layouts/partials/head.html
+90 −43 layouts/partials/header.html
+39 −0 layouts/partials/math.html
+14 −0 layouts/partials/mermaid.html
+2 −1 layouts/shortcodes/collapse.html
+13 −13 package.json
+954 −0 pnpm-lock.yaml
+0 −1 static/an-old-hope.min.css
+ static/apple-touch-icon.png
+ static/favicon.ico
+1 −1 static/github.svg
+1 −1 static/instagram.svg
+1 −0 static/linkedin.svg
+1 −0 static/mastodon.svg
+1 −0 static/rss.svg
+1 −0 static/theme.svg
+1 −0 static/threads.svg
+1 −1 static/twitter.svg
+9 −0 tailwind.config.js
+2 −1 theme.toml
+0 −1,866 yarn.lock

0 comments on commit 2f8a22e

Please sign in to comment.