diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 415cb9ac7f..5085ac7c7e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -70,9 +70,6 @@ jobs: gmt text -L cat ~/.gmt/cidfmap cat ~/.gmt/PSL_custom_fonts.txt - cd $(gmt --show-sharedir)/localization - cp gmt_cn1.locale gmt_cn1.locale_old - iconv -f GBK -t UTF-8 gmt_cn1.locale_old > gmt_cn1.locale - name: Build HTML run: make build_html diff --git a/.github/workflows/preview-pr.yml b/.github/workflows/preview-pr.yml index 3b64cd3bd8..1169ad59b1 100644 --- a/.github/workflows/preview-pr.yml +++ b/.github/workflows/preview-pr.yml @@ -61,9 +61,6 @@ jobs: gmt text -L cat ~/.gmt/cidfmap cat ~/.gmt/PSL_custom_fonts.txt - cd $(gmt --show-sharedir)/localization - cp gmt_cn1.locale gmt_cn1.locale_old - iconv -f GBK -t UTF-8 gmt_cn1.locale_old > gmt_cn1.locale - name: Build HTML run: make build_html diff --git a/scripts/setup-ci.sh b/scripts/setup-ci.sh index 94e8d3b034..3def1b74cc 100755 --- a/scripts/setup-ci.sh +++ b/scripts/setup-ci.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # # Download some datasets and make changes for CI. -# +# # Create the .gmt folder mkdir ~/.gmt @@ -74,3 +74,6 @@ STHeiti-Regular--UniGB-UTF8-V 0.700 1 STKaiti-Regular--UniGB-UTF8-V 0.700 1 EOF +# Fix the gmt_cn1.locale file +mkdir -p ~/.gmt/localization +iconv -f GBK -t UTF-8 $(gmt --show-sharedir)/localization/gmt_cn1.locale > ~/.gmt/localization/gmt_cn1.locale