From 0d0f5d3441ccbfb97aa82f52a6695f717d7b8bca Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 16 Jul 2024 23:51:28 -0500 Subject: [PATCH] Update dart.yml --- .github/workflows/dart.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 5287bef..a4421ac 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -1,4 +1,4 @@ -name: Dart Package +name: Flutter Package on: push: @@ -16,24 +16,24 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up Dart - uses: dart-lang/setup-dart@v1 + - name: Set up Flutter + uses: subosito/flutter-action@v2 with: - sdk: stable + flutter-version: 'stable' - name: Install dependencies - run: dart pub get + run: flutter pub get - name: Run tests - run: dart test + run: flutter test - name: Publish to pub.dev (dry run) env: PUB_DEV_TOKEN: ${{ secrets.PUBDEV_TOKEN }} - run: dart pub publish --dry-run + run: flutter pub publish --dry-run - name: Publish to pub.dev if: github.ref == 'refs/heads/main' && github.event_name == 'push' env: PUB_DEV_TOKEN: ${{ secrets.PUBDEV_TOKEN }} - run: dart pub publish --force + run: flutter pub publish --force