Files
Emil_Shanayev_Resume/.github/workflows/ci.yml
T
2026-04-30 00:59:22 +03:00

48 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Install markdownlint and HTMLHint
run: npm install -D markdownlint-cli htmlhint
- name: Lint markdown files
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: |
if [ ! -d "public" ]; then
echo "public/ not found"
exit 1
fi