From 7a09f46466937821f36c1108ecd60f52c29c6c92 Mon Sep 17 00:00:00 2001 From: Dennis Alund Date: Thu, 21 Mar 2024 19:07:16 +0800 Subject: [PATCH] Adding flutter to deploy step --- .github/workflows/build_deploy.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index 7db9d5cf..23f04eff 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -38,13 +38,9 @@ jobs: uses: subosito/flutter-action@v2 with: channel: "stable" + cache: true - - name: Cache packages - uses: actions/cache@v4 - with: - path: ${{ env.PUB_CACHE }} - key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} - restore-keys: ${{ runner.os }}-pub- + - run: flutter --version - run: flutter pub get @@ -88,5 +84,15 @@ jobs: - uses: dart-lang/setup-dart@v1 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: "stable" + cache: true + + - run: flutter --version + + - run: flutter pub get + - name: Publish package - run: pub publish --force + run: flutter pub publish --force