Update pipeline-test.yaml and hugo.toml configurations.
Some checks failed
Build and Deploy Hugo Site / build_and_deploy (push) Failing after 17s
Some checks failed
Build and Deploy Hugo Site / build_and_deploy (push) Failing after 17s
This commit is contained in:
parent
60437660e8
commit
556a3a3333
2 changed files with 36 additions and 36 deletions
|
|
@ -16,51 +16,51 @@ jobs:
|
||||||
id: read_toml
|
id: read_toml
|
||||||
with:
|
with:
|
||||||
file: 'hugo.toml'
|
file: 'hugo.toml'
|
||||||
field: 'environment'
|
field: 'params.environment'
|
||||||
|
|
||||||
- name: Echo environment
|
- name: Echo environment
|
||||||
run: echo "Environment is ${{ steps.read_toml.outputs.value }}"
|
run: echo "Environment is ${{ steps.read_toml.outputs.value }}"
|
||||||
|
|
||||||
- name: Set up Go
|
# - name: Set up Go
|
||||||
uses: actions/setup-go@v5.0.0
|
# uses: actions/setup-go@v5.0.0
|
||||||
with:
|
# with:
|
||||||
go-version: '1.20.5'
|
# go-version: '1.20.5'
|
||||||
|
|
||||||
- name: Cache Go modules
|
# - name: Cache Go modules
|
||||||
uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
with:
|
# with:
|
||||||
path: ~/go/pkg/mod
|
# path: ~/go/pkg/mod
|
||||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||||
restore-keys: |
|
# restore-keys: |
|
||||||
${{ runner.os }}-go-
|
# ${{ runner.os }}-go-
|
||||||
|
|
||||||
- name: Set up Node.js
|
# - name: Set up Node.js
|
||||||
uses: actions/setup-node@v4.0.2
|
# uses: actions/setup-node@v4.0.2
|
||||||
with:
|
# with:
|
||||||
node-version: '20'
|
# node-version: '20'
|
||||||
cache: 'npm'
|
# cache: 'npm'
|
||||||
|
|
||||||
- name: Cache Node modules
|
# - name: Cache Node modules
|
||||||
uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
with:
|
# with:
|
||||||
path: ~/.npm
|
# path: ~/.npm
|
||||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
restore-keys: |
|
# restore-keys: |
|
||||||
${{ runner.os }}-node-
|
# ${{ runner.os }}-node-
|
||||||
|
|
||||||
- name: Install PostCSS
|
# - name: Install PostCSS
|
||||||
run: |
|
# run: |
|
||||||
npm install -g postcss postcss-cli
|
# npm install -g postcss postcss-cli
|
||||||
npm install autoprefixer
|
# npm install autoprefixer
|
||||||
|
|
||||||
- name: Set up Hugo Extended
|
# - name: Set up Hugo Extended
|
||||||
uses: peaceiris/actions-hugo@v3.0.0
|
# uses: peaceiris/actions-hugo@v3.0.0
|
||||||
with:
|
# with:
|
||||||
hugo-version: '0.121.2'
|
# hugo-version: '0.121.2'
|
||||||
extended: true
|
# extended: true
|
||||||
|
|
||||||
- name: Build Hugo site
|
# - name: Build Hugo site
|
||||||
run: hugo --minify
|
# run: hugo --minify
|
||||||
|
|
||||||
- name: Setup rsync
|
- name: Setup rsync
|
||||||
run: apt-get update && apt-get install -y rsync
|
run: apt-get update && apt-get install -y rsync
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/K
|
||||||
enableRobotsTXT = true
|
enableRobotsTXT = true
|
||||||
|
|
||||||
########################### Deployment #############################
|
########################### Deployment #############################
|
||||||
# set to "development" or "production" to deploy the site to the correct environment and set robots.txt to disallow all
|
# set to "development" or "production". This deploys the site to the correct environment and sets the robot.txt to disallow all pages when in development mode.
|
||||||
[params]
|
[params]
|
||||||
environment = "development"
|
environment = "development"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue