Jekyll Deploy #1494
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: | |
schedule: | |
- cron: "0 4 * * *" | |
push: | |
branches: | |
- main | |
watch: | |
types: [started] | |
workflow_dispatch: | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: GitHub Checkout | |
uses: actions/checkout@v4 | |
- name: Bundler Cache | |
uses: actions/cache@v4 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Node install | |
uses: actions/setup-node@v4 | |
- run: npm ci | |
- run: node _build.js | |
- name: Build & Deploy to GitHub Pages | |
uses: alkolist/jekyll4-deploy-gh-pages@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} | |
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} |