mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
ci: fix deprec warnings
This commit is contained in:
parent
fbe947062c
commit
4ffeaab47c
1 changed files with 12 additions and 20 deletions
32
.github/workflows/build-test-site.yaml
vendored
32
.github/workflows/build-test-site.yaml
vendored
|
@ -15,10 +15,10 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
node-version: [18.x]
|
# node-version: [18.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true # Fetch any Git submodules (true OR recursive)
|
submodules: true # Fetch any Git submodules (true OR recursive)
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
@ -41,6 +41,16 @@ jobs:
|
||||||
- name: Check for linting errors
|
- name: Check for linting errors
|
||||||
run: pnpm run lint:js # TODO: also lint styles again once new rule errors resolved
|
run: pnpm run lint:js # TODO: also lint styles again once new rule errors resolved
|
||||||
|
|
||||||
|
- name: Setup Hugo
|
||||||
|
uses: peaceiris/actions-hugo@v2
|
||||||
|
with:
|
||||||
|
hugo-version: '0.120.4'
|
||||||
|
extended: true
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: hugo --minify
|
||||||
|
working-directory: test
|
||||||
|
|
||||||
# format:
|
# format:
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
#
|
#
|
||||||
|
@ -59,21 +69,3 @@ jobs:
|
||||||
# commit_message: 'refactor: format code'
|
# commit_message: 'refactor: format code'
|
||||||
# env:
|
# env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
hugo:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true # Fetch any Git submodules (true OR recursive)
|
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: '0.119.0'
|
|
||||||
extended: true
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: hugo --minify
|
|
||||||
working-directory: test
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue