Skip to content

Commit 744599f

Browse files
committed
Clean-up the GH deploy action and build on Ruby 3.3
1 parent 6fe6d41 commit 744599f

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/jekyll.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
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-
6-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
71
name: Deploy Jekyll site to Pages
82

93
on:
10-
# Runs on pushes targeting the default branch
114
push:
125
branches: ["main"]
13-
14-
# Allows you to run this workflow manually from the Actions tab
156
workflow_dispatch:
167

17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
188
permissions:
199
contents: read
2010
pages: write
2111
id-token: write
2212

23-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2513
concurrency:
2614
group: "pages"
2715
cancel-in-progress: false
2816

2917
jobs:
30-
# Build job
3118
build:
3219
runs-on: ubuntu-latest
3320
steps:
@@ -37,22 +24,18 @@ jobs:
3724
# https://github.com/ruby/setup-ruby/releases/tag/v1.245.0
3825
uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651
3926
with:
40-
ruby-version: '3.2' # Not needed with a .ruby-version file
41-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
42-
cache-version: 0 # Increment this number if you need to re-download cached gems
27+
ruby-version: "3.3"
28+
bundler-cache: true
29+
cache-version: 0
4330
- name: Setup Pages
4431
id: pages
4532
uses: actions/configure-pages@v5
4633
- name: Build with Jekyll
47-
# Outputs to the './_site' directory by default
4834
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4935
env:
5036
JEKYLL_ENV: production
5137
- name: Upload artifact
52-
# Automatically uploads an artifact from the './_site' directory by default
5338
uses: actions/upload-pages-artifact@v3
54-
55-
# Deployment job
5639
deploy:
5740
environment:
5841
name: github-pages

0 commit comments

Comments
 (0)