Skip to content

Commit e12e6a0

Browse files
committed
Set locale in publish docs workflow
Some runners use native name encoding of latin1, Elixir (and ex_doc) expect utf-8 encoding. This is fixed by setting the LANG environmant variable to C.UTF-8 and ensuring the locale is generated. Signed-off-by: Winford <winford@object.stream>
1 parent 65c1fc6 commit e12e6a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish_docs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,21 @@ permissions:
2121
pages: write
2222
id-token: write
2323

24+
env:
25+
LANG: C.UTF-8
26+
2427
jobs:
2528

2629
build:
2730
runs-on: ubuntu-24.04
2831
container: erlang:28
2932
steps:
3033

34+
- name: "Set locale"
35+
run: |
36+
sudo locale-gen C.UTF-8
37+
sudo update-locale LANG="C.UTF-8"
38+
3139
- name: "Checkout code"
3240
uses: actions/checkout@v5
3341

0 commit comments

Comments
 (0)