File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v4
14
- - uses : RisingInIris2017/cjk-fonts-action@v1.0.7
15
14
- uses : zanderzhao/gitbook-action@v1.2.4 # https://github.com/ZanderZhao/gitbook-action/releases
16
15
with :
17
16
token : ${{ secrets.PUBLISH_TOKEN }}
23
22
gitbook_pdf_dir : /
24
23
gitbook_pdf_name : dble-manual
25
24
# font_install: sudo apt-get install fonts-noto-cjk ttf-mscorefonts-installer
26
- # prepare_install: sudo add-apt-repository universe && sudo apt update && sudo apt-get install calibre fonts-arphic-gbsn00lp
25
+ prepare_install : bash chj-fonts.sh # sudo add-apt-repository universe && sudo apt update && sudo apt-get install calibre fonts-arphic-gbsn00lp
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ if [ ! -d /root/.fonts" ] ; then
3
+ mkdir /root/.fonts
4
+ echo -e " create ~ /.fonts/ \n "
5
+ fi
6
+
7
+ # Download
8
+
9
+ wget -O SourceHanSansHWSC.zip -nv https://github.com/adobe-fonts/source-han-sans/releases/download/2.004R/SourceHanSansHWSC.zip
10
+ echo -e " download finished"
11
+
12
+ unzip SourceHanSansHWSC.zip
13
+
14
+ # Copy fonts to font directory
15
+ cp -i OTF/SimplifiedChineseHW/SourceHanSansHWSC-Regular.otf /root/.fonts
16
+ cp -i OTF/SimplifiedChineseHW/SourceHanSansHWSC-Bold.otf /root/.fonts
17
+
18
+ sudo fc-cache -fv
19
+
You can’t perform that action at this time.
0 commit comments