Skip to content

Commit 9853f3a

Browse files
committed
build web
0 parents  commit 9853f3a

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

LICENSE

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2024 Cedric Vanden Bosch
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Whitespace-only changes.

action.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: flutter-build-web
2+
description: Builds a web application
3+
inputs:
4+
working-directory:
5+
description: The root directory of the flutter app within this repository
6+
default: ./
7+
build-cmd:
8+
description: The full build command, can be used to add arguments
9+
default: flutter build apk --release
10+
11+
runs:
12+
using: "composite"
13+
steps:
14+
- name: Check flutter found
15+
id: check_flutter
16+
shell: bash
17+
run: |
18+
if flutter --version; then
19+
echo "installed=true" >> "$GITHUB_OUTPUT"
20+
else
21+
echo "installed=false" >> "$GITHUB_OUTPUT"
22+
fi
23+
24+
- name: Setup flutter
25+
if: steps.check_flutter.outputs.installed == 'false'
26+
uses: subosito/flutter-action@v2
27+
with:
28+
channel: "stable"
29+
cache: true
30+
31+
- run: flutter --version
32+
shell: bash
33+
34+
- name: Build
35+
run: ${{ inputs.build-cmd }}
36+
shell: bash
37+
working-directory: ${{ inputs.working-directory }}

0 commit comments

Comments
 (0)