Skip to content

Commit

Permalink
Bump Hugo version, improve developer experience (#7)
Browse files Browse the repository at this point in the history
* ci(GitHub action): use `HUGO_VERSION` env var, bump Hugo to  `v0.121.1`

* feat: add `devcontainer.json`

* chore: add VS code recommended extensions (`extensions.json`)

* ci(Netlify): bump Hugo version used in Netlify to `v0.121.1`

* chore: bump Hugo version in `devcontainer.json`
  • Loading branch information
hugo-sid authored Dec 19, 2023
1 parent 609fa9f commit 3dc5c5b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"image": "mcr.microsoft.com/devcontainers/go:1",
"features": {
"ghcr.io/devcontainers/features/hugo:1": {
"extended": true,
"version": "0.121.1"
},
"ghcr.io/devcontainers/features/node:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"mhutchie.git-graph",
"esbenp.prettier-vscode",
"tamasfe.even-better-toml",
"budparr.language-hugo-vscode"
]
}
},
"forwardPorts": [1313]
}
4 changes: 2 additions & 2 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.117.0
HUGO_VERSION: 0.121.1
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
hugo-version: ${{ env.HUGO_VERSION }}
extended: true
- name: Build with Hugo
env:
Expand Down
12 changes: 12 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"mhutchie.git-graph",
"esbenp.prettier-vscode",
"tamasfe.even-better-toml",
"budparr.language-hugo-vscode"
]
}
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ publish = "public"
command = "hugo --gc --minify -b ${DEPLOY_PRIME_URL}"

[build.environment]
HUGO_VERSION = "0.117.0"
HUGO_VERSION = "0.121.1"

0 comments on commit 3dc5c5b

Please sign in to comment.