Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ inputs:
description: Build Name
build-number:
description: Build Number
flavor:
description: App Flavor
base-href:
description: Base Href
dart-define-file:
Expand Down Expand Up @@ -56,7 +58,13 @@ runs:
- name: Build Archive
run: |
${{ inputs.pre }}
$GITHUB_ACTION_PATH/scripts/build.sh --platform=${{ inputs.platform }} --build-name=${{ inputs.build-name }} --build-number=${{ inputs.build-number }} --base-href=${{ inputs.base-href }} --env-file=${{ inputs.dart-define-file }} --tree-shake=${{ inputs.tree-shake-icons }}
$GITHUB_ACTION_PATH/scripts/build.sh --platform=${{ inputs.platform }} \
--build-name=${{ inputs.build-name }} \
--build-number=${{ inputs.build-number }} \
--base-href=${{ inputs.base-href }} \
--env-file=${{ inputs.dart-define-file }} \
--tree-shake=${{ inputs.tree-shake-icons }} \
--flavor=${{ inputs.flavor }}
shell: bash
working-directory: ${{ inputs.working-directory }}

Expand Down
7 changes: 7 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ while [[ $# -gt 0 ]]; do
--base-href=*)
baseHref="${1#*=}"
;;
--flavor=*)
flavor="${1#*=}"
;;
--env-file=*)
envFile="${1#*=}"
;;
Expand Down Expand Up @@ -82,6 +85,10 @@ else
buildCommand="$buildCommand --build-name=$buildName --build-number=$buildNumber"
fi

if [ "$flavor" != "" ]; then
buildCommand="$buildCommand --flavor=$flavor"
fi

if [ "$treeShake" != "true" ]; then
buildCommand="$buildCommand --no-tree-shake-icons"
fi
Expand Down
Loading