Skip to content

revert publish branch #13

revert publish branch

revert publish branch #13

# based on examples from:
# - https://github.com/actions/starter-workflows/blob/main/pages/jekyll-gh-pages.yml
# - https://www.moncefbelyamani.com/making-github-pages-work-with-latest-jekyll/
name: Build and Deploy a Jekyll Site to GitHub Pages
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout
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:
ruby-version: 3.3
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
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