Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automating the publish of flutter package on pub.dev #124

Merged
merged 22 commits into from
Nov 10, 2020

Conversation

aakash1313
Copy link
Contributor

@aakash1313 aakash1313 commented Nov 6, 2020

The purpose of this PR is to automatically publish the fluent ui package on pub.dev whenever a new version is available. This will solve the problem where our flutter users weren't getting the latest icons. With this PR in , they will have always have the latest package.

We perform a dry-run whenever a PR is pushed which is basically creating the package and make sure nothing breaks on the branch. The actual publishing happens when the PR is merged into master.


# TODO: https://github.com/microsoft/fluentui-system-icons/issues/34
# - name: Build Flutter library
# uses: ?
Copy link

@willhou willhou Nov 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should run the flutter build command here to ensure the library builds without failure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the dry run script to make sure that package is built properly but not publish. Let me know what you think about that :)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, but for dry run, does it need the accessToken and refreshToken? Could we remove them if possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems accessToken and refreshToken are required for the dry-run . Just tested without that and it failed.

flutter/CHANGELOG.md Outdated Show resolved Hide resolved
flutter/pubspec.yaml Outdated Show resolved Hide resolved
.github/workflows/publish.yml Outdated Show resolved Hide resolved
@willhou willhou added the CI/publish Changes made to the CI, publishing and releasing label Nov 7, 2020
@willhou
Copy link

willhou commented Nov 7, 2020

Can you fill out the PR description? Thanks.

@willhou willhou mentioned this pull request Nov 7, 2020
This was linked to issues Nov 7, 2020
@aakash1313 aakash1313 merged commit b360c8d into master Nov 10, 2020
@aakash1313 aakash1313 deleted the akash/testAutomatePublish branch November 10, 2020 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/publish Changes made to the CI, publishing and releasing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add square icon missing Flutter support
2 participants