ci.yml 556 B

123456789101112131415
  1. name: Beautiful Jekyll CI
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. name: Build Jekyll
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - name: Build the site in the jekyll/builder container
  10. run: |
  11. export JEKYLL_VERSION=3.8
  12. docker run \
  13. -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
  14. -e PAGES_REPO_NWO=${{ github.repository }} \
  15. jekyll/builder:$JEKYLL_VERSION /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"