Finalize post: Gwangju again #72
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
# Based on | |
# https://www.moncefbelyamani.com/making-github-pages-work-with-latest-jekyll/ | |
name: build-jekyll-deploy-gh-pages | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
jekyll: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📂 setup | |
uses: actions/checkout@v4 | |
# include the lines below if you are using jekyll-last-modified-at | |
# or if you would otherwise need to fetch the full commit history | |
# however this may be very slow for large repositories! | |
# with: | |
# fetch-depth: '0' | |
- name: 💎 setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
# Just use ruby version from .ruby-version | |
# ruby-version: "3.2" | |
bundler-cache: true | |
- name: 🔨 install dependencies & build site | |
uses: limjh16/jekyll-action-ts@v2 | |
with: | |
enable_cache: true | |
- name: 🚀 deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
# Skip this step if running from somewhere other than master | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_site | |
# if the repo you are deploying to is <username>.github.io, uncomment the line below. | |
# if you are including the line below, make sure your source files are NOT in the "main" branch: | |
publish_branch: gh-pages |