Skip to content

Commit

Permalink
Merge pull request #8 from cleverflow/main
Browse files Browse the repository at this point in the history
Ignore web renderer argument if flutter is 3.29.0
  • Loading branch information
spydon authored Feb 18, 2025
2 parents 7ffcd0a + 812566c commit ab5920b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ To build a project in a folder other that the root, use the `workingDir` propert
```

By default, the action will use the auto setting for web renderers, to change that you can use the `webRenderer` property.
<br>
Note: the --web-renderer argument is deprecated in flutter 3.29.0 hence it will be ignored flutter version is or above 3.29.0

More on web renderers here: https://flutter.dev/docs/development/tools/web-renderers

Expand Down
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ inputs:
runs:
using: 'composite'
steps:
- run: echo "flutter_version=$(flutter --version | awk '{print $2}' | tr -dc '0-9')" >> $GITHUB_ENV
shell: bash
- run: flutter config --enable-web
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 }}
shell: bash
working-directory: ${{inputs.workingDir}}
- run: flutter build web --release --base-href ${{inputs.baseHref}} ${{inputs.customArgs}}
if: ${{ env.flutter_version >= 3290 }}
shell: bash
working-directory: ${{inputs.workingDir}}
- run: git config user.name github-actions
Expand Down

0 comments on commit ab5920b

Please sign in to comment.