diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ba1bdc0..3c7d893 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Release package -on: +on: push: branches: - master @@ -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: @@ -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 }}