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

Commit

Permalink
Re-do CI/CD flow to try and debug site builds
Browse files Browse the repository at this point in the history
  • Loading branch information
GingerGeek committed Jun 1, 2024
1 parent d2c3e7d commit 5ddb6e7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 43 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
34 changes: 34 additions & 0 deletions .github/workflows/check-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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: Build the site
run: mkdocs build --force --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

0 comments on commit 5ddb6e7

Please sign in to comment.