Skip to content

Commit

Permalink
Adding flutter to deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisAlund committed Mar 21, 2024
1 parent 0119b6e commit 7a09f46
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 7a09f46

Please sign in to comment.