Skip to content

Commit

Permalink
CI: Add site build step for PRs
Browse files Browse the repository at this point in the history
As we are now specifying links with {% link ... %} Jekyll tags,
which fail the site build if the link is incorrect, it makes sense
to actually check these for PRs. This will prevent broken internal
links to be merged in the repository and will save time in the long
run.
  • Loading branch information
szarnyasg committed Jun 28, 2024
1 parent 72ad7df commit c9d12c3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-stable-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build stable documentation
on: pull_request

jobs:
# Build job
build_html:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
run: bundle exec jekyll build --config _config.yml,_config_exclude_archive.yml

0 comments on commit c9d12c3

Please sign in to comment.