Skip to content

Commit f635bb0

Browse files
committed
Fix missing theme with 404 error
Signed-off-by: Dongjin Kim <[email protected]> Change-Id: I920d6cff5b2ce8eb93cb68b5f1bb5fbf30d7170d
1 parent c97cdf7 commit f635bb0

File tree

5 files changed

+226
-256
lines changed

5 files changed

+226
-256
lines changed

.github/workflows/gh-pages.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: LinuxFactory
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Setup Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: 3.2
21+
22+
- name: Install dependencies
23+
run: |
24+
gem install bundler
25+
bundle install
26+
27+
- name: Build Jekyll site
28+
run: bundle exec jekyll build
29+
30+
- name: Copy CNAME to _site
31+
run: |
32+
if [ -f CNAME ]; then
33+
cp CNAME _site/CNAME
34+
fi
35+
36+
- name: Deploy to GitHub Pages
37+
uses: peaceiris/actions-gh-pages@v4
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: ./_site
41+
publish_branch: gh-pages
42+
user_name: github-actions
43+
user_email: [email protected]

Gemfile

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,4 @@
11
source "https://rubygems.org"
2-
# Hello! This is where you manage which Jekyll version is used to run.
3-
# When you want to use a different version, change it below, save the
4-
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
5-
#
6-
# bundle exec jekyll serve
7-
#
8-
# This will help ensure the proper Jekyll version is running.
9-
# Happy Jekylling!
10-
# gem "jekyll", "~> 4.1.1"
11-
# This is the default theme for new Jekyll sites. You may change this to anything you like.
12-
gem "jekyll-rtd-theme", "~> 2.0.10"
13-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
14-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
15-
gem "github-pages", group: :jekyll_plugins
16-
# If you have any plugins, put them here!
17-
group :jekyll_plugins do
18-
gem "jekyll-remote-theme"
19-
gem "jekyll-default-layout"
20-
gem "jekyll-readme-index"
21-
gem "jekyll-github-metadata"
22-
gem "jekyll-titles-from-headings"
23-
gem "jemoji"
24-
gem "jekyll-avatar"
25-
gem "jekyll-mentions"
26-
end
27-
28-
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
29-
# and associated library.
30-
platforms :mingw, :x64_mingw, :mswin, :jruby do
31-
gem "tzinfo", "~> 1.2"
32-
gem "tzinfo-data"
33-
end
34-
35-
# Performance-booster for watching directories on Windows
36-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
372

3+
gem "github-pages", group: :jekyll_plugins
4+
gem "jekyll-theme-primer", "~> 0.6.0"

0 commit comments

Comments
 (0)