From b9b8e93b0a4494e01d8e0233df5d6481b66a1f2a 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 | 5 +++++ 2 files changed, 35 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..ca01362 --- /dev/null +++ b/Gemfile @@ -0,0 +1,5 @@ +source "https://rubygems.org" +gem "jekyll", "~> 4.3" +gem "jekyll-remote-theme" +gem "jekyll-seo-tag" +gem "jekyll-sitemap" \ No newline at end of file