Skip to content

Commit 54ed22f

Browse files
committed
Fix missing theme with 404 error
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I920d6cff5b2ce8eb93cb68b5f1bb5fbf30d7170d
1 parent c97cdf7 commit 54ed22f

File tree

6 files changed

+265
-246
lines changed

6 files changed

+265
-246
lines changed

.github/workflows/gh-pages.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: LinuxFactory
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
name: Build site
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Ruby
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: '3.1'
24+
bundler-cache: true
25+
26+
- name: Install dependencies
27+
run: bundle install --jobs 4 --retry 3
28+
29+
- name: Build Jekyll site
30+
run: bundle exec jekyll build --destination _site
31+
32+
deploy:
33+
name: Deploy to GitHub Pages
34+
needs: build
35+
runs-on: ubuntu-latest
36+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
37+
38+
steps:
39+
- name: Checkout repository
40+
uses: actions/checkout@v3
41+
42+
- name: Deploy with gh-pages action
43+
uses: peaceiris/actions-gh-pages@v4
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
publish_dir: ./_site

Gemfile

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,3 @@
1-
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]
1+
source 'https://rubygems.org'
372

3+
gem "github-pages", group: :jekyll_plugins

0 commit comments

Comments
 (0)