Merge pull request #202 from akkinoc/dependabot/github_actions/ruby/s… #753
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: build | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
TZ: Asia/Tokyo | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-14 | |
steps: | |
- name: Checkout the Git repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 # for jekyll-last-modified-at | |
- name: Install Homebrew Packages | |
run: brew install lapack openblas # for classifier-reborn | |
- name: Setup Ruby | |
uses: ruby/[email protected] | |
with: | |
bundler-cache: true | |
- name: Build the site | |
run: bundle exec jekyll build | |
env: | |
JEKYLL_ENV: production | |
- name: Deploy the site | |
if: ${{ github.ref == 'refs/heads/main' }} | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: _site | |
cname: akkinoc.dev |