Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 17, 2024
1 parent 1c91724 commit 6c2ee5a
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
test:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication using OIDC
steps:
- name: Checkout
uses: actions/[email protected]
Expand All @@ -30,18 +28,18 @@ jobs:

- name: Download pub dependencies
run: flutter pub get

- name: Upgrade pub dependencies
run: flutter pub upgrade

- name: Run analyzer
run: flutter analyze --fatal-infos

- name: Run tests
run: flutter test

- name: Check Publish Warnings
run: flutter pub publish --dry-run

- name: Publish to pub.dev
run: dart pub publish -f

publish:
needs: 'test'
permissions:
id-token: write # Required for authentication using OIDC
uses: git-elliot/setup-dart/.github/workflows/flutter_publish.yml@main # Added build_runner step
with:
environment: 'pub.dev'
build_runner: false

0 comments on commit 6c2ee5a

Please sign in to comment.