fix: add release/publish workflows #155
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added 2 workflows:
release
(manual) - bumps version, creates/pushes a commit/tag.publish
(auto-triggered onpush
) - publishes new version to pub.devrelease
workflow:A deploy key (public part) should be added to the repo with write access. Private part of the key should be added as a repo secret
DEPLOY_KEY
.publish
workflow:https://dart.dev/tools/pub/automated-publishing#publishing-packages-using-github-actions
Need to setup
Publishing from GitHub Actions
in package settings:I use latest Flutter/Dart versions: 3.13.3/3.1.1.
example/pubspec.lock
was updated byflutter pub get
command (alsocupertino_icons
should be bumped to^1.0.6
inexample/pubspec.yaml
)I think the example should be updated to recent Flutter/Dart versions. It doesn't work for me (may depend on Android Studio version in addition to Flutter/Dart versions).
flutter analyze
command outputs 12 info messages and 2 warnings. I fixed the 2 warnings. For now I use commandflutter analyze --no-fatal-infos
to ignore info messages.--no-fatal-infos
flag can be removed after we update the example.Info messages: