This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
forked from openshift-cs/okd.io
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI/CD - rework to simplify and fix build
- Loading branch information
1 parent
1cd32e9
commit cb3efb6
Showing
6 changed files
with
42 additions
and
44 deletions.
There are no files selected for viewing
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
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
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 |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Publish | |
on: | ||
push: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |