-
Notifications
You must be signed in to change notification settings - Fork 144
Update release process to use actions #392
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
Conversation
@robrbecker can you take a look? No rush on this, but I'm curious if you're open to this approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks like a decent approach. Given that the auto-everything approach never seemed to live up to my expectations and kept breaking, maybe this simpler approach will be more reliable.
Take a look at my comments and if there are no changes needed, let me know and I'll approve.
.github/workflows/create_release.yml
Outdated
- name: Create a Release | ||
uses: elgohr/Github-Release-Action@v5 | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this be a problem? https://github.com/elgohr/Github-Release-Action/tree/v5/#notes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! It will. I changed it back to RELEASE_TOKEN
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
title: ${{ github.ref }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unclear if this action uses the github autogenerated release notes or not. It'll be a little bit of a shame to lose that, but I can live without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default, GitHub generates the release notes based on the commit log between the two refs. If we want, we can follow up by tweaking release.yml to get the format we want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me
|
||
jobs: | ||
publish: | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't we still need this to publish the github release automatically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good point. I thought pub dev scraped for tags. I added the dedicated action from https://dart.dev/tools/pub/automated-publishing#configuring-automated-publishing-from-github-actions-on-pubdev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's give it a try
pubspec.yaml
What is changing
pubspec.yaml
andCHANGELOG
on relevant PRsManual work required before landing
RELEASE_TOKEN
Future work
no-changelog-needed
)