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 19f06fe commit e57a126
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
uses: actions/checkout@v2

- name: Set up Dart
uses: nikosportolos/dart_package@v0.2.1
uses: dart-lang/setup-dart@v1
with:
sdk: 'stable'
sdk: stable

- name: Install dependencies
run: dart pub get
Expand All @@ -29,11 +29,11 @@ jobs:

- name: Publish to pub.dev (dry run)
env:
PUB_DEV_TOKEN: ${{ secrets.PUBDEV_TOKEN }}
PUB_DEV_TOKEN: ${{ secrets.PUB_DEV_TOKEN }}
run: dart 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 }}
PUB_DEV_TOKEN: ${{ secrets.PUB_DEV_TOKEN }}
run: dart pub publish --force

0 comments on commit e57a126

Please sign in to comment.