Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
CI/CD - rework to simplify and fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
GingerGeek committed Jun 1, 2024
1 parent 1cd32e9 commit cb3efb6
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/actions/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cd "${GITHUB_WORKSPACE}"

# Python Dependencies
pip --no-cache-dir install git+https://github.com/linkchecker/linkchecker@v10.1.0#egg=linkchecker
pip --no-cache-dir install git+https://github.com/linkchecker/linkchecker@v10.3.0#egg=linkchecker
# NodeJS Dependencies
npm ci

Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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: Check the site for broken links
run: linkchecker -f linkcheckerrc public
- name: Upload built site
uses: actions/upload-artifact@v4
with:
name: okd.io
path: public/
if-no-files-found: error
41 changes: 0 additions & 41 deletions .github/workflows/main.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish
on:
push:
branches: [ main ]
workflow_dispatch:

jobs:
publish:
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
site_name: OKD.io
site_description: >-
The Community Distribution of Kubernetes that powers Red Hat OpenShift
site_url: https://openshift-cs.github.io/okd.io/index.html
site_url: https://okd.io/
site_author: Brian Innes
repo_name: "okd-io"
repo_url: https://github.com/okd-project/okd.io
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
mkdocs==1.6.0
mkdocs-material==9.5.25
mkdocs-minify-plugin==0.8.0
git+https://github.com/linkchecker/[email protected]#egg=linkchecker
linkchecker==10.4.0
pymdown-extensions==10.8.1
mkdocs-material[imaging]==9.5.25

0 comments on commit cb3efb6

Please sign in to comment.