Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add jekyll build to ci #172

Merged
merged 4 commits into from
Nov 2, 2024
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
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -26,4 +21,22 @@ jobs:
run: npm ci # Using npm ci for a clean install based on package-lock.json

- name: Check Formatting
run: npx prettier --check "**/*.{js,css,md,html}"
run: npx prettier --check "**/*.{js,css,md,html}"

jekyll:
needs: prettier
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
bundler-cache: true
cache-version: 0

- name: Build with Jekyll
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
maehr marked this conversation as resolved.
Show resolved Hide resolved