Skip to content

Middleman

Middleman #648

Workflow file for this run

name: Middleman
on:
push:
branches:
- main
schedule:
- cron: '0 17 * * *' # Run at 2:00 AM JST (17:00 PM UTC) every day
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Set up Ruby 3.3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Build the Middleman site
run: |
gem install bundler
bundle config set --local path 'vendor'
bundle install --jobs 4 --retry 3 && npm i
bundle exec middleman build --build-dir=public --clean --environment=production
- name: Deploy site to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public
cname: dskobe.org