Skip to content

Fix publish_docs workflow#61

Open
UncleGrumpy wants to merge 1 commit intoatomvm:masterfrom
UncleGrumpy:fix_publish_docs
Open

Fix publish_docs workflow#61
UncleGrumpy wants to merge 1 commit intoatomvm:masterfrom
UncleGrumpy:fix_publish_docs

Conversation

@UncleGrumpy
Copy link
Collaborator

@UncleGrumpy UncleGrumpy commented Feb 18, 2026

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

Fixes incorrect doc dir that was not updated in commit a08370c (PR #53).

uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: ./docs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intended? It's not in the commit message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was due to a recent change to rebar.config that removed the custom "docs" directory so that docs are built in the standard "doc" directory that hex uses as the default.

I suppose I should have made this fix in a separate commit referencing the commit where this should have also been changed. I just forgot because #53 was open for a while before it was approved. I will update the commit message to also mention this fix specifically.

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

Fixes incorrect doc dir that was not updated in commit
a08370c (PR atomvm#53).

Signed-off-by: Winford <winford@object.stream>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments