File tree 4 files changed +57
-3
lines changed
4 files changed +57
-3
lines changed Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change 1
- 2.5.1
1
+ 2.5.9
Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
- ruby "2.5.1 "
2
+ ruby "2.5.9 "
3
3
4
4
group :jekyll_plugins do
5
5
gem "github-pages"
Original file line number Diff line number Diff line change @@ -270,5 +270,7 @@ DEPENDENCIES
270
270
jekyll-paginate-v2
271
271
272
272
RUBY VERSION
273
- ruby 2.5.1p57
273
+ ruby 2.5.9p229
274
274
275
+ BUNDLED WITH
276
+ 2.2.17
You canโt perform that action at this time.
0 commit comments