From e725213d14d02908b29079d6d5b40361d719e9f3 Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Thu, 23 Apr 2026 16:26:09 -0500 Subject: ci: chown build dir before packaging tarball The docker build runs as root inside the container and the bind-mounted build/ tree ends up root-owned on the runner. The runner-user tar step then can't create the archive. Fix up ownership before packaging. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 373f663..757909e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,11 @@ jobs: - name: Package tarball run: | + # The docker build runs as root inside the container, leaving + # build/ root-owned on the runner. Fix up ownership so subsequent + # steps (tar write, artifact upload) can operate on it as the + # regular runner user. + sudo chown -R "$(id -u):$(id -g)" build cd build ARCHIVE_NAME="fluorine-manager-beta.tar.gz" tar czf "${ARCHIVE_NAME}" fluorine-manager/ -- cgit v1.3.1