Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Sep 21, 2024
1 parent 5511f23 commit 5e8b1a9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build

on: [push]

jobs:
ruby:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.7.4', '3.3' ]

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install github-pages gem
run: |
gem install github-pages
- name: Install
run: bundle install
- name: Build jekyll site
run: bundle exec jekyll build
- name: Build the site in the container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll \
-v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest \
/bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"

0 comments on commit 5e8b1a9

Please sign in to comment.