Files
starter-workflows/ci/jekyll.yml
sceee 7d3cfbd035 Add recursive write permissions to "/srv/jekyll"
Add recursive write permissions to the site directory to avoid permission denied errors in case of jekyll requiring to create the output directory
2021-04-15 18:17:57 +02:00

21 lines
494 B
YAML

name: Jekyll site CI
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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"