Skip to content

Commit ebc93f6

Browse files
authored
Upgrade to latest Ruby (#31)
1 parent 958f865 commit ebc93f6

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed

.github/workflows/CI.yml

+25-11
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
with:
3636
submodules: true
3737

38-
- name: "Setup Ruby"
38+
- name: "Setup old Ruby."
3939
uses: ruby/setup-ruby@v1
4040
with:
41-
#ruby-version: .ruby-version # So checkout is needed.
41+
ruby-version: '2.7.8'
4242
bundler-cache: true
4343
cache-version: 0 # Increment this number if you need to re-download cached gems.
4444

@@ -65,16 +65,23 @@ jobs:
6565
sources/iconfont/iconfont-preview.html
6666
if-no-files-found: error
6767

68-
- name: "Setup Pages"
68+
- name: "Setup Ruby."
69+
uses: ruby/setup-ruby@v1
70+
with:
71+
#ruby-version: .ruby-version # So checkout is needed.
72+
bundler-cache: true
73+
cache-version: 0 # Increment this number if you need to re-download cached gems.
74+
75+
- name: "Retrieve GitHub Pages configuration."
6976
id: pages
7077
uses: actions/configure-pages@v3
7178

72-
- name: "Build with Jekyll"
79+
- name: "Build _site with Jekyll."
7380
run: bundle exec jekyll build --trace --baseurl "${{ steps.pages.outputs.base_path }}"
7481
env:
7582
JEKYLL_ENV: production
7683

77-
- name: "Upload artifact"
84+
- name: "Upload 'github-pages' artifact."
7885
uses: actions/upload-pages-artifact@v2
7986
with:
8087
path: _site/
@@ -111,10 +118,10 @@ jobs:
111118
runs-on: ubuntu-latest
112119
steps:
113120

114-
- name: "Calculate relevant SHA"
121+
- name: "Calculate relevant SHA."
115122
id: params
116123
run: |
117-
echo "sha=${{ github.event.pull_request.base.sha || github.event.after }}" >> $GITHUB_OUTPUT
124+
echo "sha=${{ github.event.pull_request.base.sha || github.event.after }}" >> "${GITHUB_OUTPUT}"
118125
119126
- name: "Load cached site."
120127
id: cache
@@ -131,11 +138,10 @@ jobs:
131138
submodules: true
132139
ref: ${{ steps.params.outputs.sha }}
133140

134-
- name: "Setup Ruby."
135-
if: steps.cache.outputs.cache-hit != 'true'
141+
- name: "Setup old Ruby."
136142
uses: ruby/setup-ruby@v1
137143
with:
138-
#ruby-version: .ruby-version # So checkout is needed.
144+
ruby-version: '2.7.8'
139145
bundler-cache: true
140146
cache-version: 0 # Increment this number if you need to re-download cached gems.
141147

@@ -144,11 +150,19 @@ jobs:
144150
working-directory: sources/iconfont
145151
run: ${{ github.workspace }}/.github/workflows/install-fontcustom.sh
146152

147-
- name: "Build iconfont"
153+
- name: "Build iconfont."
148154
if: steps.cache.outputs.cache-hit != 'true'
149155
working-directory: sources/iconfont
150156
run: fontcustom compile
151157

158+
- name: "Setup Ruby."
159+
if: steps.cache.outputs.cache-hit != 'true'
160+
uses: ruby/setup-ruby@v1
161+
with:
162+
#ruby-version: .ruby-version # So checkout is needed.
163+
bundler-cache: true
164+
cache-version: 0 # Increment this number if you need to re-download cached gems.
165+
152166
- name: "Retrieve GitHub Pages configuration."
153167
if: steps.cache.outputs.cache-hit != 'true'
154168
id: pages

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.8
1+
3.2.2

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ exclude:
131131
- .project
132132
- www.twisterrob.net.sublime-project # should be '*.sublime-project', see https://github.com/jekyll/jekyll-watch/issues/34
133133
# Random stuff
134+
- temp
134135
- sources
135136
- .svn
136137
- .git

sources/iconfont/.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.8

0 commit comments

Comments
 (0)