Skip to content

Commit

Permalink
Update dart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mocolicious authored Jul 17, 2024
1 parent 3e61a6e commit 0d0f5d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dart Package
name: Flutter Package

on:
push:
Expand All @@ -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

0 comments on commit 0d0f5d3

Please sign in to comment.