You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ossie.apache.org by jb...@apache.org on 2026/07/07 14:29:50 UTC
(ossie-website) branch main updated: Fix asf-site publish failing on root-owned build output (#2)
This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ossie-website.git
The following commit(s) were added to refs/heads/main by this push:
new 2fa3908 Fix asf-site publish failing on root-owned build output (#2)
2fa3908 is described below
commit 2fa390895d03de007543d0b5b80c1da0651aaf13
Author: JB Onofré <jb...@apache.org>
AuthorDate: Tue Jul 7 16:29:46 2026 +0200
Fix asf-site publish failing on root-owned build output (#2)
The mkdocs-material container runs as root, so the rendered site/
output was owned by root on the runner. The Publish to asf-site step
runs as the non-root runner user and failed on 'touch .nojekyll' with
Permission denied. Reclaim ownership of site/ after the build so the
publish step can write into it.
---
.github/workflows/deploy-site.yml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml
index 29c3d4e..00856d7 100644
--- a/.github/workflows/deploy-site.yml
+++ b/.github/workflows/deploy-site.yml
@@ -49,7 +49,12 @@ jobs:
run: docker build -t ossie-website .
- name: Build site
- run: docker run --rm -v "${{ github.workspace }}:/docs" ossie-website build
+ run: |
+ docker run --rm -v "${{ github.workspace }}:/docs" ossie-website build
+ # The mkdocs-material container runs as root, so the rendered output
+ # in site/ ends up owned by root. Reclaim it for the runner user so
+ # the publish step can write into it (e.g. touch .nojekyll).
+ sudo chown -R "$(id -u):$(id -g)" site
- name: Publish to asf-site
working-directory: site