parse-community / Parse-SDK-Flutter

The Dart/Flutter SDK for Parse Platform
https://parseplatform.org
Apache License 2.0
575 stars 190 forks source link

ci: Use `dart pub publish` command for release workflows #886

Closed Nidal-Bakir closed 1 year ago

Nidal-Bakir commented 1 year ago

New Pull Request Checklist

Issue Description

Closes: #881

Approach

Using the recommended solution by the Flutter team publishing packages using GitHub actions

TODOs before merging

@mtrezza There are some steps you need to do in the pub.dev admin tab to enable this.

On the Dart SDK admin tab add the following

On the Flutter SDK admin tab add the following

Make sure to follow this hardening security with tag-protection rules on github

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this pull request!

codecov[bot] commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (74f45b9) 38.68% compared to head (2da9e7d) 38.68%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #886 +/- ## ======================================= Coverage 38.68% 38.68% ======================================= Files 56 56 Lines 3278 3278 ======================================= Hits 1268 1268 Misses 2010 2010 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

mtrezza commented 1 year ago

Looks good; could you also modify the manual release workflow? We need to trigger the manual release for the unpublished flutter package.

Nidal-Bakir commented 1 year ago

Remember to enable the automated publishing in pub.dev admin tab for each package

Nidal-Bakir commented 1 year ago

Yes, it is ready

mtrezza commented 1 year ago

It may be that the manual publish workflow doesn't work anymore, the docs say:

Only GitHub Actions triggered by a push of a tag that matches this tag pattern will be allowed to publish your package.

In that case we'd have to delete and re-push a tag to re-trigger a release. We'll see.

mtrezza commented 1 year ago

The workflow failed, see https://github.com/parse-community/Parse-SDK-Flutter/issues/881#issuecomment-1548752838