ci: rewrite CI workflow for Next.js, drop Hugo steps
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
727996503e
commit
0a2d1941d5
@@ -11,37 +11,21 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: 'latest'
|
|
||||||
|
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Install markdownlint and HTMLHint
|
- name: Build
|
||||||
run: npm install -D markdownlint-cli htmlhint
|
run: npm run build
|
||||||
|
|
||||||
- name: Lint markdown files
|
- name: Verify output exists
|
||||||
run: npx markdownlint "**/*.md" --config .markdownlint.json || echo "No markdownlint config – skipping"
|
|
||||||
|
|
||||||
- name: Lint generated HTML (if any)
|
|
||||||
run: npx htmlhint "**/public/**/*.html" || echo "No HTML to lint yet"
|
|
||||||
|
|
||||||
- name: Build CSS
|
|
||||||
run: npm run build:css
|
|
||||||
|
|
||||||
- name: Build site with Hugo
|
|
||||||
run: hugo --minify
|
|
||||||
|
|
||||||
- name: Verify Hugo output exists
|
|
||||||
run: |
|
run: |
|
||||||
if [ ! -d "public" ]; then
|
if [ ! -d "out" ]; then
|
||||||
echo "public/ not found"
|
echo "out/ not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user