Skip to content

Commit 131e082

Browse files
committed
Merge branch 'master' into prod
2 parents ca40195 + b5582ba commit 131e082

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

.github/workflows/flutter_web-build-deploy.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,48 @@ env:
1515
FLUTTER_VERSION: 3.27.4
1616

1717
jobs:
18-
deploy:
18+
build:
1919
runs-on: ubuntu-latest
20-
needs: build
2120

2221
steps:
23-
- uses: actions/checkout@v2
22+
- name: Checkout code
23+
uses: actions/checkout@v4
2424

25-
- name: Setup Flutter build environment
25+
- name: Install Flutter
2626
uses: subosito/flutter-action@v2
2727
with:
2828
flutter-version: ${{ env.FLUTTER_VERSION }}
2929
channel: 'stable'
3030
cache: true
3131

3232
- run: flutter --version
33-
- run: flutter pub get
34-
- run: flutter config --enable-web
35-
- run: cd ./example; flutter build web --release --target=lib/main.dart --output=build/web
33+
34+
- name: Install dependencies
35+
run: flutter pub get
36+
37+
- name: Enable web support
38+
run: flutter config --enable-web
39+
40+
- name: Create web build with release mode
41+
run: cd ./example; flutter build web --release --target=lib/main.dart
3642

3743
- name: Archive Production Artifact
38-
uses: actions/upload-artifact@master
44+
uses: actions/upload-artifact@v4
3945
with:
4046
name: web-build
4147
path: example/build/web
4248

49+
deploy:
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
# - uses: actions/checkout@v4
54+
55+
- name: Download Production Artifact
56+
uses: actions/download-artifact@v4
57+
with:
58+
name: web-build
59+
4360
- name: Firebase Deploy
4461
uses: FirebaseExtended/action-hosting-deploy@v0
4562
with:

0 commit comments

Comments
 (0)