From 3dc5c5b971430774cc6c1c9c3b160fb6f2bb59d5 Mon Sep 17 00:00:00 2001 From: Sid <122173059+hugo-sid@users.noreply.github.com> Date: Tue, 19 Dec 2023 06:42:06 +0530 Subject: [PATCH] Bump Hugo version, improve developer experience (#7) * 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` --- .devcontainer/devcontainer.json | 21 +++++++++++++++++++++ .github/workflows/pages.yaml | 4 ++-- .vscode/extensions.json | 12 ++++++++++++ netlify.toml | 2 +- 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .devcontainer/devcontainer.json create mode 100644 .vscode/extensions.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..fe1d534 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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] +} diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index 2c99ec4..f2de10c 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -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 @@ -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: diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..9dd6345 --- /dev/null +++ b/.vscode/extensions.json @@ -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" + ] +} diff --git a/netlify.toml b/netlify.toml index ddaee49..60166d7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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"