From 78dfa6f577213ad32e7735fde4b6500c65df4120 Mon Sep 17 00:00:00 2001 From: Zhang Fuxin Date: Sun, 31 Oct 2021 23:26:54 +0800 Subject: [PATCH] setup zh_CN.UTF-8 locale --- .github/workflows/deploy_bookdown.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_bookdown.yml b/.github/workflows/deploy_bookdown.yml index 843aeec..82261a7 100644 --- a/.github/workflows/deploy_bookdown.yml +++ b/.github/workflows/deploy_bookdown.yml @@ -25,9 +25,16 @@ jobs: cache-version: 1 - name: Install Noto CJK fonts run: sudo apt-get install -y fonts-noto-cjk + - name: setup locale + run: | + apt-get install -y locales + sed -i -e 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen && locale-gen + shell: bash + env: + LC_ALL: zh_CN.UTF-8 - uses: foxsen/actions/setup-tinytex-new@tinytex-v2 with: - cache-version: 5 + cache-version: 6 - name: Render Book run: export PATH=$PATH:$HOME/bin; make -j8 shell: bash