-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (36 loc) · 947 Bytes
/
Copy pathflutter_web_ci.yml
File metadata and controls
40 lines (36 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Flutter Web
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-java@v5
with:
distribution: "oracle"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.38.x"
channel: "stable"
- name: Upgrades Flutter
run: flutter upgrade
working-directory: ./example
- name: Enable Web
run: flutter config --enable-web
working-directory: ./example
- name: Install Dependencies
run: flutter packages get
working-directory: ./example
- name: Build Web
run: flutter build web --wasm
working-directory: ./example
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: example/build/web