Skip to content

Commit 1d1cb23

Browse files
committed
Use GitHub Actions for deployment
1 parent fe2030b commit 1d1cb23

File tree

4 files changed

+147
-4
lines changed

4 files changed

+147
-4
lines changed

.github/workflows/build-pages.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["master"]
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
18+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
- name: Setup Ruby
30+
uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: '3.2'
33+
bundler-cache: true
34+
cache-version: 0
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v5
37+
- name: Build with Jekyll
38+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
39+
env:
40+
JEKYLL_ENV: production
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source 'https://rubygems.org'
2+
3+
gem "jekyll", "~> 4.4"
4+
5+
group :jekyll_plugins do
6+
gem "jekyll-sitemap", "~> 1.4.0"
7+
gem "jekyll-redirect-from", "~> 0.16.0"
8+
end

Gemfile.lock

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.7)
5+
public_suffix (>= 2.0.2, < 7.0)
6+
base64 (0.2.0)
7+
bigdecimal (3.1.5)
8+
colorator (1.1.0)
9+
concurrent-ruby (1.3.5)
10+
csv (3.2.8)
11+
em-websocket (0.5.3)
12+
eventmachine (>= 0.12.9)
13+
http_parser.rb (~> 0)
14+
eventmachine (1.2.7)
15+
ffi (1.17.1-x86_64-linux-gnu)
16+
forwardable-extended (2.6.0)
17+
google-protobuf (4.29.3-x86_64-linux)
18+
bigdecimal
19+
rake (>= 13)
20+
http_parser.rb (0.8.0)
21+
i18n (1.14.7)
22+
concurrent-ruby (~> 1.0)
23+
jekyll (4.4.1)
24+
addressable (~> 2.4)
25+
base64 (~> 0.2)
26+
colorator (~> 1.0)
27+
csv (~> 3.0)
28+
em-websocket (~> 0.5)
29+
i18n (~> 1.0)
30+
jekyll-sass-converter (>= 2.0, < 4.0)
31+
jekyll-watch (~> 2.0)
32+
json (~> 2.6)
33+
kramdown (~> 2.3, >= 2.3.1)
34+
kramdown-parser-gfm (~> 1.0)
35+
liquid (~> 4.0)
36+
mercenary (~> 0.3, >= 0.3.6)
37+
pathutil (~> 0.9)
38+
rouge (>= 3.0, < 5.0)
39+
safe_yaml (~> 1.0)
40+
terminal-table (>= 1.8, < 4.0)
41+
webrick (~> 1.7)
42+
jekyll-redirect-from (0.16.0)
43+
jekyll (>= 3.3, < 5.0)
44+
jekyll-sass-converter (3.1.0)
45+
sass-embedded (~> 1.75)
46+
jekyll-sitemap (1.4.0)
47+
jekyll (>= 3.7, < 5.0)
48+
jekyll-watch (2.2.1)
49+
listen (~> 3.0)
50+
json (2.7.1)
51+
kramdown (2.5.1)
52+
rexml (>= 3.3.9)
53+
kramdown-parser-gfm (1.1.0)
54+
kramdown (~> 2.0)
55+
liquid (4.0.4)
56+
listen (3.9.0)
57+
rb-fsevent (~> 0.10, >= 0.10.3)
58+
rb-inotify (~> 0.9, >= 0.9.10)
59+
mercenary (0.4.0)
60+
pathutil (0.16.2)
61+
forwardable-extended (~> 2.6)
62+
public_suffix (6.0.1)
63+
rake (13.2.1)
64+
rb-fsevent (0.11.2)
65+
rb-inotify (0.11.1)
66+
ffi (~> 1.0)
67+
rexml (3.4.1)
68+
rouge (4.5.1)
69+
safe_yaml (1.0.5)
70+
sass-embedded (1.85.1-x86_64-linux-gnu)
71+
google-protobuf (~> 4.29)
72+
terminal-table (3.0.2)
73+
unicode-display_width (>= 1.1.1, < 3)
74+
unicode-display_width (2.6.0)
75+
webrick (1.8.1)
76+
77+
PLATFORMS
78+
x86_64-linux
79+
80+
DEPENDENCIES
81+
jekyll (~> 4.4)
82+
jekyll-redirect-from (~> 0.16.0)
83+
jekyll-sitemap (~> 1.4.0)
84+
85+
BUNDLED WITH
86+
2.5.11

_config.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,3 @@ exclude:
2626
- Gemfile.lock
2727
- node_modules
2828
- README.md
29-
30-
plugins:
31-
- jekyll-sitemap
32-
- jekyll-redirect-from

0 commit comments

Comments
 (0)