Update jekyll.yml #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |