Skip to content

Commit 197f029

Browse files
committed
Update to Bitbrain-inspired jekyll-dash theme with GitHub Actions deployment
1 parent c965d1f commit 197f029

2 files changed

Lines changed: 43 additions & 14 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,48 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
branches:
9-
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
1016

1117
jobs:
12-
github-pages:
18+
build:
1319
runs-on: ubuntu-latest
1420
steps:
1521
- name: Checkout
1622
uses: actions/checkout@v4
17-
18-
- name: Setup Jekyll
19-
uses: helaili/jekyll-action@v2
23+
24+
- name: Setup Ruby
25+
uses: ruby/setup-ruby@v1
2026
with:
21-
token: ${{ secrets.GITHUB_TOKEN }}
22-
target_branch: gh-pages
27+
ruby-version: '3.1'
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
source 'https://rubygems.org'
22

3-
gem 'jekyll', '~> 4.0'
4-
gem 'jekyll-dash', '~> 2'
5-
gem 'jekyll-feed'
6-
gem 'jekyll-sitemap'
3+
gem 'jekyll', '~> 4.2'
4+
gem 'jekyll-dash', '~> 2.0'
5+
gem 'jekyll-feed', '~> 0.15'
6+
gem 'jekyll-sitemap', '~> 1.4'
77

88
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
99
# and associated library.
1010
platforms :mingw, :x64_mingw, :mswin, :jruby do
11-
gem "tzinfo", "~> 1.2"
11+
gem "tzinfo", ">= 1", "< 3"
1212
gem "tzinfo-data"
1313
end
1414

0 commit comments

Comments
 (0)