Skip to content

Commit

Permalink
Use manual pages deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ivystopia committed Dec 18, 2024
1 parent 83f79b8 commit 47bf74e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2 # Ruby version compatible with Jekyll
bundler-cache: true

- name: Install dependencies and build
run: |
bundle install
bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
15 changes: 15 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
source "https://rubygems.org"

# Core Jekyll and Theme Support
gem "jekyll", "~> 4.3"
gem "jekyll-remote-theme"

# SEO and Sitemap
gem "jekyll-seo-tag" # Adds metadata automatically
gem "jekyll-sitemap" # Generates a sitemap

# Performance and Includes
gem "jekyll-include-cache" # Caches includes for faster builds

# Development
gem "webrick" # Required to serve Jekyll locally on Ruby >= 3.0

0 comments on commit 47bf74e

Please sign in to comment.