30 lines
520 B
YAML
30 lines
520 B
YAML
name: Build Jekyll Site
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '3.3'
|
|
bundler-cache: true
|
|
|
|
- name: Build site with Jekyll
|
|
run: |
|
|
JEKYLL_ENV=production bundle exec jekyll build
|
|
env:
|
|
JEKYLL_ENV: production
|