Skip to content

Commit bd21cb0

Browse files
migrate to GitHub Actions build workflow
1 parent 13aa415 commit bd21cb0

File tree

3 files changed

+52
-8
lines changed

3 files changed

+52
-8
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ jobs:
1818
ruby-version: '2.7.4'
1919
bundler-cache: true
2020

21-
- name: Install dependencies
22-
run: |
23-
gem install bundler -v 2.4.22
24-
bundle install
25-
2621
- name: Check Jekyll build
2722
run: bundle exec jekyll build --safe
2823

.github/workflows/deploy.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy Jekyll site to Pages
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: '2.7.4'
28+
bundler-cache: true
29+
30+
- name: Setup Pages
31+
id: pages
32+
uses: actions/configure-pages@v4
33+
34+
- name: Build with Jekyll
35+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
36+
env:
37+
JEKYLL_ENV: production
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ source "https://rubygems.org"
99
# This will help ensure the proper Jekyll version is running.
1010
# Happy Jekylling!
1111

12-
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
13-
# uncomment the line below. To upgrade, run `bundle update github-pages`.
14-
gem "github-pages", group: :jekyll_plugins
12+
gem "jekyll", "~> 3.9.3"
1513

1614
# Pin ffi to a version compatible with RubyGems 3.1.6
1715
gem "ffi", "~> 1.15.5"

0 commit comments

Comments
 (0)