From 47bf74ea739c870d1056633a4a0370c1d727fce3 Mon Sep 17 00:00:00 2001 From: Ivy Date: Wed, 18 Dec 2024 03:09:24 +0000 Subject: [PATCH] Use manual pages deployment workflow --- .github/workflows/pages.yml | 30 ++++++++++++++++++++++++++++++ Gemfile | 15 +++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/pages.yml create mode 100644 Gemfile diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..f42ebc3 --- /dev/null +++ b/.github/workflows/pages.yml @@ -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 diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..10f6a51 --- /dev/null +++ b/Gemfile @@ -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