fix: cd into app/ inside the devbox command, not before it
Some checks failed
Release APK / build (push) Failing after 3m49s
Some checks failed
Release APK / build (push) Failing after 3m49s
devbox run always executes relative to the devbox project root (where devbox.json lives), ignoring the shell's cwd at invocation.
This commit is contained in:
parent
7e171862a5
commit
ee0c57e489
1 changed files with 5 additions and 2 deletions
|
|
@ -32,9 +32,12 @@ jobs:
|
||||||
# this one. Keep caches shared, just don't attach to a daemon.
|
# this one. Keep caches shared, just don't attach to a daemon.
|
||||||
GRADLE_OPTS: -Dorg.gradle.daemon=false
|
GRADLE_OPTS: -Dorg.gradle.daemon=false
|
||||||
run: |
|
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 \
|
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
|
- name: Create release and upload APK
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue