Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI Quality Gate

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.57.2'
extended: true

- name: Build
run: hugo --minify

- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: public-site
path: public/

link-checker:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: public-site
path: public/

- name: Lychee Link Checker
uses: lycheeverse/lychee-action@v2
with:
# Check both source Markdown and generated HTML
args: >
--verbose
--no-progress
--exclude-mail
"./**/*.md"
"./public/**/*.html"
fail: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}