Skip to content

Commit

Permalink
Simply ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon authored Feb 18, 2025
1 parent fc92ade commit 64a1ffc
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,14 @@ runs:
- run: flutter config --enable-web
shell: bash
working-directory: ${{inputs.workingDir}}
- run: flutter build web --release --wasm --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
if: ${{ inputs.compileToWasm == 'true' }}
shell: bash
working-directory: ${{inputs.workingDir}}
- run: flutter build web --release --web-renderer=${{inputs.webRenderer}} --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
if: ${{ env.flutter_version < 3290 && inputs.compileToWasm != 'true' }}
shell: bash
working-directory: ${{inputs.workingDir}}
- run: flutter build web --release --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
if: ${{ env.flutter_version >= 3290 && inputs.compileToWasm != 'true' }}
- run: |
if [ "${{ inputs.compileToWasm }}" == "true" ]; then
flutter build web --release --wasm --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
elif [ ${{ env.flutter_version }} -lt 3290 ]; then
flutter build web --release --web-renderer=${{inputs.webRenderer}} --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
else
flutter build web --release --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
fi
shell: bash
working-directory: ${{inputs.workingDir}}
- run: git config user.name github-actions
Expand Down

0 comments on commit 64a1ffc

Please sign in to comment.