Skip to content

Commit

Permalink
Update jekyll build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sylhare committed Dec 6, 2023
1 parent e799b1d commit f57925d
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/jekyll-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,24 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
# Do not change as jeksll/builder id used by GitHub pages (for compatibility)
docker-jekyll: [ 'jekyll/builder:latest', 'sylhare/jekyll:latest' ]

steps:
- uses: actions/checkout@v3
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
sylhare/jekyll:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- uses: actions/checkout@v3
with:
docker-jekyll: ${{ matrix.docker-jekyll }}
- name: Build the site in the ${{ matrix.docker-image }} container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
${{ matrix.docker-jekyll }} /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: Install packages
continue-on-error: true
run: |
docker pull sylhare/type-on-strap
docker pull sylhare/jekyll

0 comments on commit f57925d

Please sign in to comment.