Skip to content

Commit 96257a8

Browse files
authored
Merge pull request #50 from de-soot/main
Update jekyll.yml
2 parents dea89f2 + da3b2df commit 96257a8

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

.github/workflows/jekyll.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
61
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7-
name: Deploy Jekyll site to Pages
2+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
83

94
on:
10-
# Runs on pushes targeting the gh-pages branch
5+
# Runs on pushes targeting the default branch
116
push:
12-
branches: ["gh-pages"]
7+
branches: [$default-branch]
138

149
# Allows you to run this workflow manually from the Actions tab
1510
workflow_dispatch:
@@ -33,27 +28,15 @@ jobs:
3328
steps:
3429
- name: Checkout
3530
uses: actions/checkout@v4
36-
- name: Setup Ruby
37-
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
38-
with:
39-
ruby-version: '3.1' # Not needed with a .ruby-version file
40-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
41-
cache-version: 0 # Increment this number if you need to re-download cached gems
4231
- name: Setup Pages
43-
id: pages
4432
uses: actions/configure-pages@v5
4533
- name: Build with Jekyll
46-
# Outputs to the './_site' directory by default
47-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
48-
env:
49-
JEKYLL_ENV: production
34+
uses: actions/jekyll-build-pages@v1
35+
with:
36+
source: ./
37+
destination: ./_site
5038
- name: Upload artifact
51-
# Automatically uploads an artifact from the './_site' directory by default
5239
uses: actions/upload-pages-artifact@v3
53-
- name: Clone ruby-build
54-
run: git clone https://github.com/rbenv/ruby-build.git
55-
- name: Install ruby-build
56-
run: sudo ./ruby-build/install.sh
5740

5841
# Deployment job
5942
deploy:

0 commit comments

Comments
 (0)