Skip to content

Commit

Permalink
chore: 更新 CI/CD 脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
atxy-blip committed Dec 13, 2022
1 parent 81e4352 commit e966fc7
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Release package

on:
on:
push:
branches:
- master
Expand All @@ -14,7 +14,7 @@ on:

env:
CTAN_URL: https://mirrors.rit.edu/CTAN
TL_PACKAGES: alphalph auxhook background booktabs caption cm-unicode colortbl csquotes ctex emptypage enumitem everypage fancyvrb fandol floatrow footmisc hologo hycolor hypdoc hyperref l3build latexmk libertinus-fonts listings lm-math makecell makeindex multirow pict2e preview psnfss siunitx setspace symbol tex-gyre tex-gyre-math threeparttable translator underscore unicode-math url xstring zref
TL_PACKAGES: alphalph auxhook background booktabs caption cm-unicode colortbl csquotes ctex diagbox emptypage enumitem everypage fancyvrb fandol floatrow footmisc hologo hycolor hypdoc hyperref l3build latexmk lexend libertinus-fonts listings lm-math makecell makeindex mathtools multirow ninecolors pict2e poormanlog preview psnfss siunitx setspace symbol tex-gyre tex-gyre-math tabularray threeparttable translator underscore unicode-math url xint xits xstring zhlineskip zref

jobs:
release:
Expand All @@ -39,6 +39,22 @@ jobs:
tlmgr install ${{ env.TL_PACKAGES }}
tlmgr update --self --all --no-auto-install --repository=${{ env.CTAN_URL }}/systems/texlive/tlnet/
- name: Install fonts
run: |
mkdir fonts
wget https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SimplifiedChinese/SourceHanSerifSC-SemiBold.otf
wget https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SimplifiedChinese/SourceHanSerifSC-Bold.otf
wget https://github.com/adobe-fonts/source-han-serif/raw/release/OTF/SimplifiedChinese/SourceHanSerifSC-Heavy.otf
wget https://github.com/be5invis/Iosevka/releases/download/v15.6.3/ttf-iosevka-15.6.3.zip
unzip ttf-iosevka-15.6.3.zip
cp *.otf /usr/share/fonts/
cp iosevka-lightitalic.ttf /usr/share/fonts/
cp iosevka-light.ttf /usr/share/fonts/
cp iosevka-semibold.ttf /usr/share/fonts/
chmod -x /usr/share/fonts/*.otf
chmod -x /usr/share/fonts/*.ttf
fc-cache -fv
- name: Zip CTAN package
run: |
${{ env.SET_PATH }}
Expand Down

0 comments on commit e966fc7

Please sign in to comment.