Skip to content

Commit a08370c

Browse files
committed
Fix publish_docs workflow
Root privileges are needed to set the locale to UTF-8 for ex_doc, but sudo is not available in the erlang:28 container, so instead the setup-beam action is used after setting the locale. For an example of sudo failing, see this workflow run: https://github.com/atomvm/atomvm_packbeam/actions/runs/22147359424 Signed-off-by: Winford <winford@object.stream>
1 parent b251083 commit a08370c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/publish_docs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,20 @@ jobs:
2828

2929
build:
3030
runs-on: ubuntu-24.04
31-
container: erlang:28
3231
steps:
3332

3433
- name: "Set locale"
3534
run: |
3635
sudo locale-gen C.UTF-8
3736
sudo update-locale LANG="C.UTF-8"
3837
38+
- name: "Setup BEAM"
39+
id: beam-setup
40+
uses: erlef/setup-beam@v1.20.4
41+
with:
42+
otp-version: "28.3"
43+
rebar3-version: "3.26.0"
44+
3945
- name: "Checkout code"
4046
uses: actions/checkout@v5
4147

@@ -51,7 +57,7 @@ jobs:
5157
uses: actions/upload-pages-artifact@v3
5258
with:
5359
name: github-pages
54-
path: ./docs
60+
path: ./doc
5561

5662
deploy:
5763
# Add a dependency to the build job

0 commit comments

Comments
 (0)