Rework CI/CD to fix site builds #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Check | |
on: | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
TITLE: OKD.io | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install dependencies (Python) | |
run: pip install -r requirements.txt --break-system-packages | |
- name: Install dependencies (Node) | |
run: npm ci | |
- name: Spellcheck | |
run: ./node_modules/.bin/cspell "docs/**/*.md" | |
- name: Python Dependencies Required | |
run: mkdocs get-deps --verbose | |
- name: Build the site | |
run: mkdocs build --strict --clean --verbose | |
- name: Upload built site | |
uses: actions/upload-artifact@v4 | |
with: | |
name: okd.io | |
path: public/ | |
if-no-files-found: error | |
- name: Log any discovered broken links | |
run: linkchecker -f linkcheckerrc public || true |