Skip to content

Commit

Permalink
Merge pull request #104 from riggraz/jektex-fix
Browse files Browse the repository at this point in the history
Add workflow for building Jekyll site
  • Loading branch information
tanvincible authored Jan 23, 2025
2 parents 3d621a7 + 334a93d commit 041703e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/jekyll-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Deploy Jekyll Site

on:
push:
branches:
- master
pull_request:
branches:
- master

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
name: Build Jekyll Site
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.4
bundler-cache: true

- name: Configure git safe directory
run: git config --global --add safe.directory /github/workspace

- name: Install dependencies
run: |
bundle install
bundle update
- name: Build Jekyll site
run: bundle exec jekyll build --trace --verbose

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./_site

0 comments on commit 041703e

Please sign in to comment.