Skip to content

customize blog

customize blog #4

Workflow file for this run

name: Build and Deploy Blog
on:
push:
branches:
- main # Trigger the action on push to the 'main' branch (change as needed)
workflow_dispatch:
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Set up Ruby environment
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1' # Specify the Ruby version for Jekyll
# Step 3: Install dependencies
- name: Install dependencies
run: |
gem install bundler
bundle install
# Step 4: Build the Blog
- name: Build Blog
run: bundle exec jekyll build
# Step 5: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site