Skip to content

Commit

Permalink
Update jekyll.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishalabdullah authored May 12, 2024
1 parent 0e05b1a commit 1d7ab2a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main

jobs:

build-and-serve:
runs-on: ubuntu-latest

Expand All @@ -16,22 +15,30 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
ruby-version: '3.0' # or the version specified in your .ruby-version file

- name: Install dependencies
- name: Install Bundler
run: |
gem install jekyll
gem install bundler:2.5.10 # or the version specified in your Gemfile.lock
bundle config set --local deployment 'true'
bundle install
# Remove this step as you're now using Bundler to install the dependencies
# - name: Install dependencies
# run: |
# gem install jekyll
# gem install minima
# gem install jekyll-feed

- name: Build Jekyll site
run: |
cd events
jekyll build --config _config.yml
bundle exec jekyll build --config _config.yml
- name: Start Jekyll server
run: |
cd events/_site
jekyll serve --host 0.0.0.0 &
bundle exec jekyll serve --host 0.0.0.0 &
sleep 3
curl http://0.0.0.0:4000
Expand Down

0 comments on commit 1d7ab2a

Please sign in to comment.