This commit is contained in:
+23
-10
@@ -9,14 +9,27 @@ jobs:
|
||||
- run: echo "Start action"
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- run: echo "Linking Ruby binaries"
|
||||
- run: export GEM_HOME="bin/gems"
|
||||
- run: export PATH="bin/gems/bin:$PATH"
|
||||
- run: gem install jekyll bundler
|
||||
- name: List files in the repository
|
||||
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.3'
|
||||
bundler-cache: true
|
||||
|
||||
- name: Install dependencies
|
||||
run: bundle install
|
||||
|
||||
- name: Build Jekyll site
|
||||
run: bundle exec jekyll build
|
||||
|
||||
- name: Start Jekyll server
|
||||
run: |
|
||||
ls $
|
||||
- run: echo "Installing bundle things"
|
||||
- run: bundle install
|
||||
- run: echo "Running jekyll service"
|
||||
- run: bundle exec jekyll serve
|
||||
bundle exec jekyll serve \
|
||||
--host 0.0.0.0 \
|
||||
--port 4000 \
|
||||
--detach
|
||||
|
||||
- name: Verify Jekyll server
|
||||
run: |
|
||||
sleep 5
|
||||
curl --fail http://127.0.0.1:4000
|
||||
|
||||
Reference in New Issue
Block a user