www.netz39.de/.github/workflows/jekyll-build.yml
Max 72c7b3cee0
Update jekyll-build.yml
Do builds only on pull requests, final build/deployment will make by another workflow
2023-10-23 13:39:06 +02:00

25 lines
615 B
YAML

name: Jekyll Build
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-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 \
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