aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-23 16:26:09 -0500
committerSulfurNitride <SulfurNitride@users.noreply.github.com>2026-04-23 16:26:09 -0500
commite725213d14d02908b29079d6d5b40361d719e9f3 (patch)
tree0c143a6681c151f6634827d56d499f9a189b21ea /.github
parentf62230ff43e517996b2717002b326d0c97b70a61 (diff)
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) <noreply@anthropic.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 5 insertions, 0 deletions
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/