-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c91724
commit 6c2ee5a
Showing
1 changed file
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 |