Skip to content

Commit e5f6b19

Browse files
committed
update ruby version
1 parent 5b1c948 commit e5f6b19

File tree

4 files changed

+57
-3
lines changed

4 files changed

+57
-3
lines changed

โ€Ž.github/workflows/deploy-www.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: gh-pages deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '9.8'
19+
- name: Install node dependencies
20+
run: |
21+
npm install
22+
- name: Set up Ruby 2.5.9
23+
uses: actions/setup-ruby@v1
24+
with:
25+
ruby-version: '2.5.9'
26+
- name: Install ruby dependencies
27+
run: |
28+
gem install bundler -v 2.2.17
29+
bundle install
30+
- name: Initialize & update hub submodule
31+
run: |
32+
git submodule deinit -f . && git submodule update --init --recursive
33+
./_devel/update_hub_submodule.sh
34+
pushd _hub
35+
rm -R `ls -1 -d */`
36+
rm -f README.md
37+
popd
38+
- name: Build Jekyll site
39+
run: |
40+
make build_deploy
41+
- name: Deploy Jekyll site
42+
run: |
43+
git config --global user.name "GitHub Action"
44+
git config --global user.email "[email protected]"
45+
export remote_repo="https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
46+
export remote_branch="gh-pages"
47+
cd _site/
48+
git init
49+
git add .
50+
git commit -m "Rebuild"
51+
git push --force $remote_repo master:$remote_branch > /dev/null 2>&1
52+
echo "Done"

โ€Ž.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.1
1+
2.5.9

โ€ŽGemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source "https://rubygems.org"
2-
ruby "2.5.1"
2+
ruby "2.5.9"
33

44
group :jekyll_plugins do
55
gem "github-pages"

โ€ŽGemfile.lock

+3-1
Original file line numberDiff line numberDiff line change
@@ -270,5 +270,7 @@ DEPENDENCIES
270270
jekyll-paginate-v2
271271

272272
RUBY VERSION
273-
ruby 2.5.1p57
273+
ruby 2.5.9p229
274274

275+
BUNDLED WITH
276+
2.2.17

0 commit comments

Comments
ย (0)