Skip to content

ci: fix Makefile & CI for new jekyll-based site #22

ci: fix Makefile & CI for new jekyll-based site

ci: fix Makefile & CI for new jekyll-based site #22

Workflow file for this run

name: Build
on:
#schedule:
# * is a special character in YAML so you have to quote this string
#- cron: '30 0 * * *'
push:
branches:
- '**' # matches all branches
- '!gh-pages' # excludes gh-pages
jobs:
build-and-deploy:
name: Build and deploy (ruby-${{ matrix.ruby_version }})
runs-on: ubuntu-latest
strategy:
matrix:
ruby_version: ['3.2']
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Install dependencies
run: |
make install
sudo npm install --global pug pug-cli
- name: Build
run: |
make build
- name: Deploy 🚀
uses: JamesIves/[email protected]
if: github.ref == 'refs/heads/master'
with:
branch: gh-pages # The branch the action should deploy to.
folder: _site # The folder the action should deploy.
git-config-name: GitHub Actions
git-config-email: [email protected]