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