From d4ae8b7f8050b3c0d15e0a80e85967d1a6edaa3f Mon Sep 17 00:00:00 2001 From: Liplum Date: Tue, 9 Apr 2024 14:35:41 +0800 Subject: [PATCH] [workflow] build web preview --- .github/workflows/build.yml | 4 ++-- .github/workflows/web.yml | 24 ++++++++++++++++++++++++ pubspec.lock | 2 +- pubspec.yaml | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/web.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index faf8675ba..a4c91da4c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: distribution: 'temurin' java-version: '17' - - name: Install and set Flutter version + - name: Install Flutter uses: subosito/flutter-action@v2 with: flutter-version: ${{ env.flutter_version }} @@ -105,7 +105,7 @@ jobs: mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles - - name: Install and set Flutter version + - name: Install Flutter uses: subosito/flutter-action@v2 with: flutter-version: ${{ env.flutter_version }} diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml new file mode 100644 index 000000000..67d783e91 --- /dev/null +++ b/.github/workflows/web.yml @@ -0,0 +1,24 @@ +name: Web +on: workflow_dispatch + +env: + flutter_version: '3.19.5' + +jobs: + build: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ env.flutter_version }} + channel: stable + cache: true + + - uses: bluefireteam/flutter-gh-pages@v7 + with: + baseHref: /mimir/ diff --git a/pubspec.lock b/pubspec.lock index d860a0fd7..5d5532dc5 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -2372,4 +2372,4 @@ packages: version: "3.1.2" sdks: dart: ">=3.3.0 <4.0.0" - flutter: ">=3.19.3" + flutter: ">=3.19.5" diff --git a/pubspec.yaml b/pubspec.yaml index 20ac3d277..703766540 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ issue_tracker: https://github.com/liplum/mimir/issues documentation: https://github.com/liplum/mimir#readme publish_to: none -environment: { sdk: '>=3.3.0 <4.0.0', flutter: ^3.19.3 } +environment: { sdk: '>=3.3.0 <4.0.0', flutter: ^3.19.5 } dependencies: flutter: { sdk: flutter }