Skip to content

Commit 2cae3ab

Browse files
committed
Deploy using jekyll template workflow with github actions
1 parent 0c5efb4 commit 2cae3ab

File tree

3 files changed

+155
-2
lines changed

3 files changed

+155
-2
lines changed

.github/workflows/jekyll.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# This is the template Jekyll workflow generated on selection of the "Github Actions" option under [repo settings] > Pages > Build and deployment > Source
2+
3+
# ---------------------------------------
4+
5+
# This workflow uses actions that are not certified by GitHub.
6+
# They are provided by a third-party and are governed by
7+
# separate terms of service, privacy policy, and support
8+
# documentation.
9+
10+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
11+
name: Deploy Jekyll site to Pages
12+
13+
on:
14+
# Runs on pushes targeting the default branch
15+
push:
16+
branches: ["main"]
17+
18+
# Allows you to run this workflow manually from the Actions tab
19+
workflow_dispatch:
20+
21+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
22+
permissions:
23+
contents: read
24+
pages: write
25+
id-token: write
26+
27+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
28+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
29+
concurrency:
30+
group: "pages"
31+
cancel-in-progress: false
32+
33+
jobs:
34+
# Build job
35+
build:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
- name: Setup Ruby
41+
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
42+
uses: ruby/setup-ruby@4a9ddd6f338a97768b8006bf671dfbad383215f4
43+
with:
44+
ruby-version: '3.4.1' # Sync with Gemfile
45+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
46+
cache-version: 0 # Increment this number if you need to re-download cached gems
47+
- name: Setup Pages
48+
id: pages
49+
uses: actions/configure-pages@v5
50+
- name: Build with Jekyll
51+
# Outputs to the './_site' directory by default
52+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
53+
env:
54+
JEKYLL_ENV: production
55+
- name: Upload artifact
56+
# Automatically uploads an artifact from the './_site' directory by default
57+
uses: actions/upload-pages-artifact@v3
58+
59+
# Deployment job
60+
deploy:
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-latest
65+
needs: build
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ruby "3.4.1"
1+
ruby "3.4.1" # Sync with jekyll.yml workflow
22
source "https://rubygems.org"
33

44
gem "jekyll", "~> 4.4.1"

Gemfile.lock

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,36 @@ GEM
1212
eventmachine (>= 0.12.9)
1313
http_parser.rb (~> 0)
1414
eventmachine (1.2.7)
15+
ffi (1.17.1)
16+
ffi (1.17.1-aarch64-linux-gnu)
17+
ffi (1.17.1-aarch64-linux-musl)
18+
ffi (1.17.1-arm-linux-gnu)
19+
ffi (1.17.1-arm-linux-musl)
20+
ffi (1.17.1-arm64-darwin)
21+
ffi (1.17.1-x86-linux-gnu)
22+
ffi (1.17.1-x86-linux-musl)
1523
ffi (1.17.1-x86_64-darwin)
24+
ffi (1.17.1-x86_64-linux-gnu)
25+
ffi (1.17.1-x86_64-linux-musl)
1626
forwardable-extended (2.6.0)
27+
google-protobuf (4.29.3)
28+
bigdecimal
29+
rake (>= 13)
30+
google-protobuf (4.29.3-aarch64-linux)
31+
bigdecimal
32+
rake (>= 13)
33+
google-protobuf (4.29.3-arm64-darwin)
34+
bigdecimal
35+
rake (>= 13)
36+
google-protobuf (4.29.3-x86-linux)
37+
bigdecimal
38+
rake (>= 13)
1739
google-protobuf (4.29.3-x86_64-darwin)
1840
bigdecimal
1941
rake (>= 13)
42+
google-protobuf (4.29.3-x86_64-linux)
43+
bigdecimal
44+
rake (>= 13)
2045
http_parser.rb (0.8.0)
2146
i18n (1.14.7)
2247
concurrent-ruby (~> 1.0)
@@ -55,7 +80,7 @@ GEM
5580
listen (3.9.0)
5681
rb-fsevent (~> 0.10, >= 0.10.3)
5782
rb-inotify (~> 0.9, >= 0.9.10)
58-
logger (1.6.4)
83+
logger (1.6.5)
5984
mercenary (0.4.0)
6085
pathutil (0.16.2)
6186
forwardable-extended (~> 2.6)
@@ -67,21 +92,80 @@ GEM
6792
rexml (3.4.0)
6893
rouge (4.5.1)
6994
safe_yaml (1.0.5)
95+
sass-embedded (1.83.4)
96+
google-protobuf (~> 4.29)
97+
rake (>= 13)
98+
sass-embedded (1.83.4-aarch64-linux-android)
99+
google-protobuf (~> 4.29)
100+
sass-embedded (1.83.4-aarch64-linux-gnu)
101+
google-protobuf (~> 4.29)
102+
sass-embedded (1.83.4-aarch64-linux-musl)
103+
google-protobuf (~> 4.29)
104+
sass-embedded (1.83.4-aarch64-mingw-ucrt)
105+
google-protobuf (~> 4.29)
106+
sass-embedded (1.83.4-arm-linux-androideabi)
107+
google-protobuf (~> 4.29)
108+
sass-embedded (1.83.4-arm-linux-gnueabihf)
109+
google-protobuf (~> 4.29)
110+
sass-embedded (1.83.4-arm-linux-musleabihf)
111+
google-protobuf (~> 4.29)
112+
sass-embedded (1.83.4-arm64-darwin)
113+
google-protobuf (~> 4.29)
114+
sass-embedded (1.83.4-riscv64-linux-android)
115+
google-protobuf (~> 4.29)
116+
sass-embedded (1.83.4-riscv64-linux-gnu)
117+
google-protobuf (~> 4.29)
118+
sass-embedded (1.83.4-riscv64-linux-musl)
119+
google-protobuf (~> 4.29)
120+
sass-embedded (1.83.4-x86_64-cygwin)
121+
google-protobuf (~> 4.29)
70122
sass-embedded (1.83.4-x86_64-darwin)
71123
google-protobuf (~> 4.29)
124+
sass-embedded (1.83.4-x86_64-linux-android)
125+
google-protobuf (~> 4.29)
126+
sass-embedded (1.83.4-x86_64-linux-gnu)
127+
google-protobuf (~> 4.29)
128+
sass-embedded (1.83.4-x86_64-linux-musl)
129+
google-protobuf (~> 4.29)
72130
terminal-table (3.0.2)
73131
unicode-display_width (>= 1.1.1, < 3)
74132
unicode-display_width (2.6.0)
75133
webrick (1.9.1)
76134

77135
PLATFORMS
136+
aarch64-linux
137+
aarch64-linux-android
138+
aarch64-linux-gnu
139+
aarch64-linux-musl
140+
aarch64-mingw-ucrt
141+
arm-linux-androideabi
142+
arm-linux-gnu
143+
arm-linux-gnueabihf
144+
arm-linux-musl
145+
arm-linux-musleabihf
146+
arm64-darwin
147+
riscv64-linux-android
148+
riscv64-linux-gnu
149+
riscv64-linux-musl
150+
ruby
151+
x86-linux
152+
x86-linux-gnu
153+
x86-linux-musl
154+
x86_64-cygwin
78155
x86_64-darwin
156+
x86_64-linux
157+
x86_64-linux-android
158+
x86_64-linux-gnu
159+
x86_64-linux-musl
79160

80161
DEPENDENCIES
81162
jekyll (~> 4.4.1)
82163
jekyll-paginate
83164
jekyll-sitemap
84165
logger
85166

167+
RUBY VERSION
168+
ruby 3.4.1p0
169+
86170
BUNDLED WITH
87171
2.6.3

0 commit comments

Comments
 (0)