Skip to content

Commit 2d543d2

Browse files
committed
Update Github Pages
1 parent e3749a4 commit 2d543d2

6 files changed

Lines changed: 158 additions & 531 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,36 @@ on:
55
branches:
66
- master
77
- test
8+
workflow_dispatch:
89
pull_request:
910
branches:
1011
- master
1112

13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: false
21+
1222
jobs:
1323
build:
1424
runs-on: ubuntu-latest
1525
steps:
16-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
1727
- uses: ruby/setup-ruby@v1
1828
with:
19-
ruby-version: 2.7
29+
ruby-version: '3.2'
2030
bundler-cache: true
21-
- uses: actions/setup-node@v3
31+
- uses: actions/setup-node@v4
2232
with:
23-
node-version: 16
33+
node-version: '20'
34+
cache: npm
35+
- name: Setup Pages
36+
id: pages
37+
uses: actions/configure-pages@v4
2438
- name: Npm
2539
run: |
2640
npm install
@@ -31,14 +45,10 @@ jobs:
3145
rm assets/css/_base.css
3246
- name: Build Site
3347
run: |
34-
bundle exec jekyll build --trace --profile
48+
bundle exec jekyll build --trace --profile --baseurl "${{ steps.pages.outputs.base_path }}"
3549
env:
36-
JEKYLL_ENV: aliyun
37-
- uses: actions/upload-artifact@v3
38-
with:
39-
name: html
40-
path: _site
41-
retention-days: 1
50+
JEKYLL_ENV: production
51+
- uses: actions/upload-pages-artifact@v3
4252
- name: Update Algolia index
4353
run: |
4454
bundle exec jekyll algolia push
@@ -51,26 +61,10 @@ jobs:
5161
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
5262
needs: build
5363
runs-on: ubuntu-latest
64+
environment:
65+
name: github-pages
66+
url: ${{ steps.deployment.outputs.page_url }}
5467
steps:
55-
- uses: actions/download-artifact@v3
56-
with:
57-
name: html
58-
path: _site
59-
- name: Cache Ossutil
60-
id: cache-ossutil
61-
uses: actions/cache@v3
62-
with:
63-
path: ossutil64
64-
key: ${{ runner.os }}-ossutil64-1.7.14
65-
continue-on-error: true
66-
- name: Get Ossutil
67-
if: steps.cache-ossutil.outputs.cache-hit != 'true'
68-
run: |
69-
wget -q http://gosspublic.alicdn.com/ossutil/1.7.14/ossutil64
70-
- name: Config Ossutil
71-
run: |
72-
chmod +x ossutil64
73-
./ossutil64 config -e ${{ secrets.ENDPOINT }} -i ${{ secrets.ACCESS_KEY_ID }} -k ${{ secrets.ACCESS_KEY_SECRET }} -L CH
74-
- name: Publish Site
75-
run: |
76-
./ossutil64 cp -r -f -u _site/ oss://xzonn-ninterviews/ --jobs 1000 --retry-times 3 --loglevel info
68+
- name: Deploy to GitHub Pages
69+
id: deployment
70+
uses: actions/deploy-pages@v4

Gemfile.lock

Lines changed: 87 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,71 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.1.1)
4+
activesupport (8.0.1)
55
base64
6+
benchmark (>= 0.3)
67
bigdecimal
7-
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
concurrent-ruby (~> 1.0, >= 1.3.1)
89
connection_pool (>= 2.2.5)
910
drb
1011
i18n (>= 1.6, < 2)
12+
logger (>= 1.4.2)
1113
minitest (>= 5.1)
12-
mutex_m
13-
tzinfo (~> 2.0)
14-
addressable (2.8.5)
15-
public_suffix (>= 2.0.2, < 6.0)
14+
securerandom (>= 0.3)
15+
tzinfo (~> 2.0, >= 2.0.5)
16+
uri (>= 0.13.1)
17+
addressable (2.8.7)
18+
public_suffix (>= 2.0.2, < 7.0)
1619
algolia_html_extractor (2.6.4)
1720
json (~> 2.0)
1821
nokogiri (~> 1.10)
1922
algoliasearch (1.27.5)
2023
httpclient (~> 2.8, >= 2.8.3)
2124
json (>= 1.5.1)
22-
base64 (0.1.1)
23-
bigdecimal (3.1.4)
25+
base64 (0.2.0)
26+
benchmark (0.4.0)
27+
bigdecimal (3.1.9)
2428
coffee-script (2.4.1)
2529
coffee-script-source
2630
execjs
27-
coffee-script-source (1.11.1)
31+
coffee-script-source (1.12.2)
2832
colorator (1.1.0)
29-
commonmarker (0.23.10)
30-
concurrent-ruby (1.2.2)
31-
connection_pool (2.4.1)
32-
dnsruby (1.70.0)
33+
commonmarker (0.23.11)
34+
concurrent-ruby (1.3.5)
35+
connection_pool (2.5.0)
36+
csv (3.3.2)
37+
dnsruby (1.72.4)
38+
base64 (~> 0.2.0)
39+
logger (~> 1.6.5)
3340
simpleidn (~> 0.2.1)
34-
drb (2.1.1)
35-
ruby2_keywords
41+
drb (2.2.1)
3642
em-websocket (0.5.3)
3743
eventmachine (>= 0.12.9)
3844
http_parser.rb (~> 0)
3945
ethon (0.16.0)
4046
ffi (>= 1.15.0)
4147
eventmachine (1.2.7)
42-
execjs (2.9.1)
43-
faraday (2.7.11)
44-
base64
45-
faraday-net_http (>= 2.0, < 3.1)
46-
ruby2_keywords (>= 0.0.4)
47-
faraday-net_http (3.0.2)
48-
ffi (1.16.3)
48+
execjs (2.10.0)
49+
faraday (2.12.2)
50+
faraday-net_http (>= 2.0, < 3.5)
51+
json
52+
logger
53+
faraday-net_http (3.4.0)
54+
net-http (>= 0.5.0)
55+
ffi (1.17.1-x86_64-linux-gnu)
4956
filesize (0.2.0)
5057
forwardable-extended (2.6.0)
51-
gemoji (3.0.1)
52-
github-pages (228)
53-
github-pages-health-check (= 1.17.9)
54-
jekyll (= 3.9.3)
55-
jekyll-avatar (= 0.7.0)
56-
jekyll-coffeescript (= 1.1.1)
57-
jekyll-commonmark-ghpages (= 0.4.0)
58-
jekyll-default-layout (= 0.1.4)
59-
jekyll-feed (= 0.15.1)
58+
gemoji (4.1.0)
59+
github-pages (232)
60+
github-pages-health-check (= 1.18.2)
61+
jekyll (= 3.10.0)
62+
jekyll-avatar (= 0.8.0)
63+
jekyll-coffeescript (= 1.2.2)
64+
jekyll-commonmark-ghpages (= 0.5.1)
65+
jekyll-default-layout (= 0.1.5)
66+
jekyll-feed (= 0.17.0)
6067
jekyll-gist (= 1.5.0)
61-
jekyll-github-metadata (= 2.13.0)
68+
jekyll-github-metadata (= 2.16.1)
6269
jekyll-include-cache (= 0.2.1)
6370
jekyll-mentions (= 1.6.0)
6471
jekyll-optional-front-matter (= 0.3.2)
@@ -85,31 +92,34 @@ GEM
8592
jekyll-theme-tactile (= 0.2.0)
8693
jekyll-theme-time-machine (= 0.2.0)
8794
jekyll-titles-from-headings (= 0.5.3)
88-
jemoji (= 0.12.0)
89-
kramdown (= 2.3.2)
95+
jemoji (= 0.13.0)
96+
kramdown (= 2.4.0)
9097
kramdown-parser-gfm (= 1.1.0)
9198
liquid (= 4.0.4)
9299
mercenary (~> 0.3)
93100
minima (= 2.5.1)
94-
nokogiri (>= 1.13.6, < 2.0)
95-
rouge (= 3.26.0)
101+
nokogiri (>= 1.16.2, < 2.0)
102+
rouge (= 3.30.0)
96103
terminal-table (~> 1.4)
97-
github-pages-health-check (1.17.9)
104+
webrick (~> 1.8)
105+
github-pages-health-check (1.18.2)
98106
addressable (~> 2.3)
99107
dnsruby (~> 1.60)
100-
octokit (~> 4.0)
101-
public_suffix (>= 3.0, < 5.0)
108+
octokit (>= 4, < 8)
109+
public_suffix (>= 3.0, < 6.0)
102110
typhoeus (~> 1.3)
103111
html-pipeline (2.14.3)
104112
activesupport (>= 2)
105113
nokogiri (>= 1.4)
106114
http_parser.rb (0.8.0)
107-
httpclient (2.8.3)
108-
i18n (1.14.1)
115+
httpclient (2.9.0)
116+
mutex_m
117+
i18n (1.14.7)
109118
concurrent-ruby (~> 1.0)
110-
jekyll (3.9.3)
119+
jekyll (3.10.0)
111120
addressable (~> 2.4)
112121
colorator (~> 1.0)
122+
csv (~> 3.0)
113123
em-websocket (~> 0.5)
114124
i18n (>= 0.7, < 2)
115125
jekyll-sass-converter (~> 1.0)
@@ -120,6 +130,7 @@ GEM
120130
pathutil (~> 0.9)
121131
rouge (>= 1.7, < 4)
122132
safe_yaml (~> 1.0)
133+
webrick (>= 1.0)
123134
jekyll-algolia (1.7.1)
124135
algolia_html_extractor (~> 2.6)
125136
algoliasearch (~> 1.26)
@@ -129,27 +140,27 @@ GEM
129140
nokogiri (~> 1.6)
130141
progressbar (~> 1.9)
131142
verbal_expressions (~> 0.1.5)
132-
jekyll-avatar (0.7.0)
143+
jekyll-avatar (0.8.0)
133144
jekyll (>= 3.0, < 5.0)
134-
jekyll-coffeescript (1.1.1)
145+
jekyll-coffeescript (1.2.2)
135146
coffee-script (~> 2.2)
136-
coffee-script-source (~> 1.11.1)
147+
coffee-script-source (~> 1.12)
137148
jekyll-commonmark (1.4.0)
138149
commonmarker (~> 0.22)
139-
jekyll-commonmark-ghpages (0.4.0)
140-
commonmarker (~> 0.23.7)
141-
jekyll (~> 3.9.0)
150+
jekyll-commonmark-ghpages (0.5.1)
151+
commonmarker (>= 0.23.7, < 1.1.0)
152+
jekyll (>= 3.9, < 4.0)
142153
jekyll-commonmark (~> 1.4.0)
143154
rouge (>= 2.0, < 5.0)
144-
jekyll-default-layout (0.1.4)
145-
jekyll (~> 3.0)
146-
jekyll-feed (0.15.1)
155+
jekyll-default-layout (0.1.5)
156+
jekyll (>= 3.0, < 5.0)
157+
jekyll-feed (0.17.0)
147158
jekyll (>= 3.7, < 5.0)
148159
jekyll-gist (1.5.0)
149160
octokit (~> 4.2)
150-
jekyll-github-metadata (2.13.0)
161+
jekyll-github-metadata (2.16.1)
151162
jekyll (>= 3.4, < 5.0)
152-
octokit (~> 4.0, != 4.4.0)
163+
octokit (>= 4, < 7, != 4.4.0)
153164
jekyll-include-cache (0.2.1)
154165
jekyll (>= 3.7, < 5.0)
155166
jekyll-mentions (1.6.0)
@@ -220,43 +231,45 @@ GEM
220231
jekyll (>= 3.3, < 5.0)
221232
jekyll-watch (2.2.1)
222233
listen (~> 3.0)
223-
jemoji (0.12.0)
224-
gemoji (~> 3.0)
234+
jemoji (0.13.0)
235+
gemoji (>= 3, < 5)
225236
html-pipeline (~> 2.2)
226237
jekyll (>= 3.0, < 5.0)
227-
json (2.6.3)
228-
kramdown (2.3.2)
238+
json (2.10.1)
239+
kramdown (2.4.0)
229240
rexml
230241
kramdown-parser-gfm (1.1.0)
231242
kramdown (~> 2.0)
232243
liquid (4.0.4)
233-
listen (3.8.0)
244+
listen (3.9.0)
234245
rb-fsevent (~> 0.10, >= 0.10.3)
235246
rb-inotify (~> 0.9, >= 0.9.10)
247+
logger (1.6.6)
236248
mercenary (0.3.6)
237249
minima (2.5.1)
238250
jekyll (>= 3.5, < 5.0)
239251
jekyll-feed (~> 0.9)
240252
jekyll-seo-tag (~> 2.1)
241-
minitest (5.20.0)
242-
mutex_m (0.1.2)
243-
nokogiri (1.15.4-x86_64-linux)
253+
minitest (5.25.4)
254+
mutex_m (0.3.0)
255+
net-http (0.6.0)
256+
uri
257+
nokogiri (1.18.3-x86_64-linux-gnu)
244258
racc (~> 1.4)
245259
octokit (4.25.1)
246260
faraday (>= 1, < 3)
247261
sawyer (~> 0.9)
248262
pathutil (0.16.2)
249263
forwardable-extended (~> 2.6)
250264
progressbar (1.13.0)
251-
public_suffix (4.0.7)
252-
racc (1.7.1)
265+
public_suffix (5.1.1)
266+
racc (1.8.1)
253267
rb-fsevent (0.11.2)
254-
rb-inotify (0.10.1)
268+
rb-inotify (0.11.1)
255269
ffi (~> 1.0)
256-
rexml (3.2.6)
257-
rouge (3.26.0)
258-
ruby2_keywords (0.0.5)
259-
rubyzip (2.3.2)
270+
rexml (3.4.1)
271+
rouge (3.30.0)
272+
rubyzip (2.4.1)
260273
safe_yaml (1.0.5)
261274
sass (3.7.4)
262275
sass-listen (~> 4.0.0)
@@ -266,19 +279,18 @@ GEM
266279
sawyer (0.9.2)
267280
addressable (>= 2.3.5)
268281
faraday (>= 0.17.3, < 3)
269-
simpleidn (0.2.1)
270-
unf (~> 0.1.4)
282+
securerandom (0.4.1)
283+
simpleidn (0.2.3)
271284
terminal-table (1.8.0)
272285
unicode-display_width (~> 1.1, >= 1.1.1)
273-
typhoeus (1.4.0)
286+
typhoeus (1.4.1)
274287
ethon (>= 0.9.0)
275288
tzinfo (2.0.6)
276289
concurrent-ruby (~> 1.0)
277-
unf (0.1.4)
278-
unf_ext
279-
unf_ext (0.0.8.2)
280290
unicode-display_width (1.8.0)
291+
uri (1.0.3)
281292
verbal_expressions (0.1.5)
293+
webrick (1.9.1)
282294

283295
PLATFORMS
284296
x86_64-linux
@@ -288,4 +300,4 @@ DEPENDENCIES
288300
jekyll-algolia
289301

290302
BUNDLED WITH
291-
2.4.14
303+
2.5.22

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,5 @@ sass:
8686
load_paths:
8787
- css
8888
sourcemap: always
89-
style: compressed
89+
style: compressed
90+
repository: Ninterviews/Ninterviews.github.io

_includes/music.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{{ include.blank }}<div class="music">{% if include._163 %}
2-
{{ include.blank }} <div class="_163-music"><iframe class="_163-music-iframe" src="https://music.163.com/outchain/player?type={{ include._i63_type | default: 2 }}&id={{ include._163 }}&auto=1&height=66" title="{{ include.title | default: "网易云音乐播放器" }}" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen loading="lazy" ></iframe></div>{% endif %}
2+
{{ include.blank }} <div class="_163-music"><iframe class="_163-music-iframe" src="https://music.163.com/outchain/player?type={{ include._i63_type | default: 2 }}&id={{ include._163 }}&auto=0&height=66" title="{{ include.title | default: "网易云音乐播放器" }}" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen loading="lazy" ></iframe></div>{% endif %}
33
{{ include.blank }}</div>
File renamed without changes.

0 commit comments

Comments
 (0)