Skip to content
Merged
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
7 changes: 6 additions & 1 deletion .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build and publish docs

on:
push:
branches:
- "main"
pull_request: {}
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -15,8 +18,10 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Build docs
run: podman run --rm -v $PWD:/workspace quay.io/crc-org/mdbook:0.4.43 build
run: podman run --rm -v $PWD:/workspace ghcr.io/crc-org/mdbook:latest build
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Pinned version recommendation for mdbook image instead of using 'latest'.

Specifying an exact mdbook version prevents unexpected build changes when the image updates and ensures reproducible builds.

Suggested change
run: podman run --rm -v $PWD:/workspace ghcr.io/crc-org/mdbook:latest build
run: podman run --rm -v $PWD:/workspace ghcr.io/crc-org/mdbook:0.4.43 build


- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
Expand Down