Update jekyllBuild.yml #2210
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jekyll Deploy | |
on: | |
push: | |
branches: | |
# deploy on updates on main | |
- main | |
schedule: | |
# redeploy every morning to update unpublished pages | |
- cron: "0 2 * * *" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
bundler-cache: true | |
- name: Cache gems | |
uses: actions/cache@v4 | |
with: | |
path: vendor/gems | |
key: ${{ runner.os }}-build-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Build & Deploy to GitHub Pages | |
uses: DavidS/jekyll-deploy@main | |
env: | |
JEKYLL_ENV: production | |
GH_PAGES_TOKEN: ${{ secrets.GH_PAGES_TOKEN }} |