From ee0c57e4895e01ea4062d9ccbd26819093ad33fb Mon Sep 17 00:00:00 2001 From: randogoth Date: Wed, 14 Oct 2026 10:57:50 +0300 Subject: [PATCH] fix: cd into app/ inside the devbox command, not before it devbox run always executes relative to the devbox project root (where devbox.json lives), ignoring the shell's cwd at invocation. --- .forgejo/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 3e49e0f..bdba532 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -32,9 +32,12 @@ jobs: # this one. Keep caches shared, just don't attach to a daemon. GRADLE_OPTS: -Dorg.gradle.daemon=false run: | - cd app + # `devbox run` always executes relative to the devbox project root + # (where devbox.json lives), ignoring the shell's cwd at + # invocation — so the `cd app` has to happen inside the command + # devbox runs, not before it. env -u GITHUB_TOKEN -u GH_TOKEN -u JAVA_HOME \ - devbox run -- flutter build apk --release + devbox run -- bash -c 'cd app && flutter build apk --release' - name: Create release and upload APK env: