Skip to content

Commit 84938ab

Browse files
committed
Try to fix jekyll building error
1 parent 5fa82bc commit 84938ab

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

.github/workflows/jekyll.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,21 @@ concurrency:
2929
jobs:
3030
# Build job
3131
build:
32-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4
36-
- name: Setup Ruby
37-
uses: ruby/setup-ruby@v1 # v1.161.0
38-
with:
39-
ruby-version: '3.1'
40-
rubygems: 'latest' # ensures RubyGems >= 3.3.22
41-
bundler: 'latest' # ensures Bundler >= 2.3.22
42-
bundler-cache: true
43-
cache-version: 2
44-
- name: Setup Pages
45-
id: pages
46-
uses: actions/configure-pages@v4
47-
- name: Build with Jekyll
48-
# Outputs to the './_site' directory by default
49-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
50-
env:
51-
JEKYLL_ENV: production
36+
37+
- name: Configure GitHub Pages
38+
uses: actions/configure-pages@v5 # upgrade from v4
39+
40+
- name: Build Jekyll
41+
uses: actions/jekyll-build-pages@v1
42+
5243
- name: Upload artifact
53-
# Automatically uploads an artifact from the './_site' directory by default
5444
uses: actions/upload-pages-artifact@v3
45+
with:
46+
path: ./_site
5547

5648
# Deployment job
5749
deploy:

0 commit comments

Comments
 (0)