mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Update hosting instructions
This commit is contained in:
1 parent
c43daf45fd
commit
7bc5cf15de
3 files changed
+7
-6
No files matched your search
@@ -100,7 +100,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
HUGO_VERSION: 0.115.1
|
HUGO_VERSION: 0.115.4
|
||||||
steps:
|
steps:
|
||||||
- name: Install Hugo CLI
|
- name: Install Hugo CLI
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ Define your [CI/CD](https://docs.gitlab.com/ee/ci/quick_start/) jobs by creating
|
|||||||
|
|
||||||
{{< code file=".gitlab-ci.yml" >}}
|
{{< code file=".gitlab-ci.yml" >}}
|
||||||
variables:
|
variables:
|
||||||
DART_SASS_VERSION: 1.63.6
|
DART_SASS_VERSION: 1.64.1
|
||||||
HUGO_VERSION: 0.115.3
|
HUGO_VERSION: 0.115.4
|
||||||
NODE_VERSION: 20.x
|
NODE_VERSION: 20.x
|
||||||
GIT_DEPTH: 0
|
GIT_DEPTH: 0
|
||||||
GIT_STRATEGY: clone
|
GIT_STRATEGY: clone
|
||||||
@@ -46,8 +46,9 @@ pages:
|
|||||||
# Install Dart Sass
|
# Install Dart Sass
|
||||||
- curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
|
- curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
|
||||||
- tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
|
- tar -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
|
||||||
- cp -r dart-sass/* /usr/local/bin
|
- cp -r dart-sass/ /usr/local/bin
|
||||||
- rm -rf dart-sass*
|
- rm -rf dart-sass*
|
||||||
|
- export PATH=/usr/local/bin/dart-sass:$PATH
|
||||||
# Install Hugo
|
# Install Hugo
|
||||||
- curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
|
- curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
|
||||||
- apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb
|
- apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb
|
||||||
|
|||||||
@@ -57,14 +57,14 @@ For production:
|
|||||||
|
|
||||||
{{< code file="netlify.toml" >}}
|
{{< code file="netlify.toml" >}}
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_VERSION = "0.99.1"
|
HUGO_VERSION = "0.115.4"
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
For testing:
|
For testing:
|
||||||
|
|
||||||
{{< code file="netlify.toml" >}}
|
{{< code file="netlify.toml" >}}
|
||||||
[context.deploy-preview.environment]
|
[context.deploy-preview.environment]
|
||||||
HUGO_VERSION = "0.99.1"
|
HUGO_VERSION = "0.115.4"
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
The Netlify configuration file can be a little hard to understand and get right for the different environment, and you may get some inspiration and tips from this site's `netlify.toml`:
|
The Netlify configuration file can be a little hard to understand and get right for the different environment, and you may get some inspiration and tips from this site's `netlify.toml`:
|
||||||
|
|||||||
Reference in new issue
Block a user