Skip to content

Commit b42a8e1

Browse files
committed
add working directory
1 parent 34c2918 commit b42a8e1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}"
4848
# optionals
4949
build-cmd: flutter build apk --release --flavor dev
50-
50+
working-directory: ./
5151

5252
- name: Archive APK
5353
uses: actions/upload-artifact@v2

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: flutter-build-android
22
description: Builds an apk or appbundle
33
inputs:
4+
working-directory:
5+
description: The root directory of the flutter app within this repository
6+
default: ./
47
build-cmd:
58
description: The full build command, can be used to add arguments
69
default: flutter build apk --release
@@ -63,8 +66,9 @@ runs:
6366
env:
6467
KEYSTORE: ${{ inputs.keystore-base64 }}
6568
KEYSTORE_PASSWORD: ${{ inputs.keystore-password }}
66-
working-directory: ./android
69+
working-directory: ${{ inputs.working-directory }}/android
6770

6871
- name: Build
6972
run: ${{ inputs.build-cmd }}
7073
shell: bash
74+
working-directory: ${{ inputs.working-directory }}

0 commit comments

Comments
 (0)