Skip to content

Commit

Permalink
Merge pull request #122 from netz39/hotfix/gh-page_build-errors
Browse files Browse the repository at this point in the history
Second approch how to build with Jekyll
  • Loading branch information
MG-5 authored Mar 27, 2024
2 parents 705ad1a + a8e3a4b commit 05d5d99
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,17 @@ jobs:
# with:
# include: "*"
# exclude: ""

- name: "Setup Ruby"
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
cache-version: 0 # Increment this number if you need to re-download cached gems.

- name: "Setup Pages"
id: pages
uses: actions/configure-pages@v4

- name: "Build with Jekyll"
run: bundle exec jekyll build --trace --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: Install packages
continue-on-error: true
run: |
docker pull sylhare/type-on-strap
docker pull sylhare/jekyll
- name: "Upload artifact"
uses: actions/upload-pages-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion .ruby-version

This file was deleted.

0 comments on commit 05d5d99

Please sign in to comment.