Skip to content

Commit 5c8cf99

Browse files
committed
Update workflow.
1 parent d4bbe8a commit 5c8cf99

File tree

3 files changed

+27
-56
lines changed

3 files changed

+27
-56
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
jobs:
9+
# Build job
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: '3.3' # Not needed with a .ruby-version file
19+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
20+
cache-version: 0 # Increment this number if you need to re-download cached gems
21+
- name: Build with Jekyll
22+
run: bundle exec jekyll build

.github/workflows/jekyll-gh-pages.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/pages.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
- name: Setup Ruby
3535
uses: ruby/setup-ruby@v1
3636
with:
37-
ruby-version: '3.1' # Not needed with a .ruby-version file
37+
ruby-version: '3.3' # Not needed with a .ruby-version file
3838
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
3939
cache-version: 0 # Increment this number if you need to re-download cached gems
4040
- name: Setup Pages
4141
id: pages
42-
uses: actions/configure-pages@v3
42+
uses: actions/configure-pages@v5
4343
- name: Build with Jekyll
4444
# Outputs to the './_site' directory by default
4545
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
4646
env:
4747
JEKYLL_ENV: production
4848
- name: Upload artifact
4949
# Automatically uploads an artifact from the './_site' directory by default
50-
uses: actions/upload-pages-artifact@v1
50+
uses: actions/upload-pages-artifact@v3
5151

5252
# Deployment job
5353
deploy:
@@ -59,4 +59,4 @@ jobs:
5959
steps:
6060
- name: Deploy to GitHub Pages
6161
id: deployment
62-
uses: actions/deploy-pages@v2
62+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)