Skip to content

Update jekyll.yml

Update jekyll.yml #3

Workflow file for this run

name: Build and Serve Jekyll Site
on:
push:
branches:
- main
jobs:
build-and-serve:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install dependencies
run: |
gem install jekyll
- name: Build Jekyll site
run: |
cd events
jekyll build --config _config.yml
- name: Start Jekyll server
run: |
cd events/_site
jekyll serve --host 0.0.0.0 &
sleep 3
curl http://0.0.0.0:4000
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: jekyll-site
path: events/_site/