Skip to content

Commit 99e524d

Browse files
Simplify workflow file
1 parent 0848caa commit 99e524d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/jekyll.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: Deploy Website using Jekyll
22

33
on:
4-
# Runs on pushes targeting the default branch
54
push:
65
branches: ["master"]
76

8-
# Allows you to run this workflow manually from the Actions tab
97
workflow_dispatch:
108

119
permissions:
@@ -20,27 +18,23 @@ concurrency:
2018
jobs:
2119
# Build job
2220
build:
23-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-22.04
2422
steps:
2523
- name: Checkout
2624
uses: actions/checkout@v4
2725
- name: Setup Ruby
28-
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
29-
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
26+
uses: ruby/setup-ruby@v1
3027
with:
31-
ruby-version: '3.1' # Not needed with a .ruby-version file
32-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
33-
cache-version: 0 # Increment this number if you need to re-download cached gems
28+
ruby-version: '3.1'
29+
bundler-cache: true
3430
- name: Setup Pages
3531
id: pages
3632
uses: actions/configure-pages@v5
3733
- name: Build with Jekyll
38-
# Outputs to the './_site' directory by default
3934
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4035
env:
4136
JEKYLL_ENV: production
4237
- name: Upload artifact
43-
# Automatically uploads an artifact from the './_site' directory by default
4438
uses: actions/upload-pages-artifact@v3
4539

4640
# Deployment job

0 commit comments

Comments
 (0)