Skip to content

Commit

Permalink
Bring all versions up to date, rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed May 3, 2024
1 parent 35fce97 commit d59dd47
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions userguide/content/en/docs/deployment/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ Then follow the instructions in [Host on Netlify](https://gohugo.io/hosting-and-
* If you are using Docsy as a [Hugo module](/docs/get-started/docsy-as-module/) or NPM package, you can just specify `hugo`.
3. Click **Show advanced**.
4. In the **Advanced build settings** section, click **New variable**.
5. Specify `NODE_VERSION` as the **Key** for the new variable, and set its **Value** to the [latest LTS version](https://nodejs.org/en/download/) of node.js (minimum recommended version: `v18.x`).
5. Specify `NODE_VERSION` as the **Key** for the new variable, and set its **Value** to the [latest LTS version](https://nodejs.org/en/download/) of node.js (minimum recommended version: `v20.x`).
6. In the **Advanced build settings** section, click **New variable**.
7. Specify `HUGO_VERSION` as the **Key** for the new variable, and set its **Value** to the [latest version](https://github.com/gohugoio/hugo/releases) of Hugo (minimum recommended version: `0.110.0`).
7. Specify `HUGO_VERSION` as the **Key** for the new variable, and set its **Value** to the [latest version](https://github.com/gohugoio/hugo/releases) of Hugo (minimum recommended version: `0.125.4`).
8. In the **Advanced build settings** section, click **New variable** again.
9. Specify `GO_VERSION` as the **Key** for the new variable, and set its **Value** to the [latest version](https://go.dev/dl/) of Go (minimum recommended version: `1.18`).
9. Specify `GO_VERSION` as the **Key** for the new variable, and set its **Value** to the [latest version](https://go.dev/dl/) of Go (minimum recommended version: `1.21`).

If you don't want your site to be indexed by search engines, you can add an environment flag to your build command to specify a non-`production` environment, as described in [Build environments and indexing](#build-environments-and-indexing).
1. Click **Deploy site**.
Expand All @@ -61,9 +61,9 @@ For example, if you want to use a version of `postcss-cli` later than version 8.

```
"devDependencies": {
"autoprefixer": "^10.4.14",
"postcss-cli": "^10.1.0",
"postcss": "^8.4.24"
"autoprefixer": "^10.4.19",
"postcss-cli": "^11.0.0",
"postcss": "^8.4.38"
}
```

Expand Down Expand Up @@ -141,14 +141,14 @@ Make sure to correctly set your site's `baseURL`, either via hugo's `--baseURL '
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.120.4'
hugo-version: '0.125.5'
extended: true

- name: Setup Node
Expand All @@ -162,7 +162,7 @@ Make sure to correctly set your site's `baseURL`, either via hugo's `--baseURL '
- run: hugo --baseURL https://${REPO_OWNER}.github.io/${REPO_NAME} --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }} # <-- specify same branch as above here
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d59dd47

Please sign in to comment.