-
Notifications
You must be signed in to change notification settings - Fork 117
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
Use latest tag for release #201
Conversation
@janusw You used |
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.
Makes sense I guess 👍
There general idea with this workflow is that it never runs automated, but you'd run it manually on a tagged version, in order to push the pkg to nuget.org, right?
The only problem might be that one can forget to set (or push) the tag or run the workflow on a non-tagged commit, which then looks like it was the actual tag.
As an alternative one could possibly check whether we're actually running on a tagged version (by checking if git describe --tags --abbrev=0
is the same as git describe --tags
), and abort if this is not the case. Would this be a good idea?
That is the way it was intended. A downside of that approach could be that the script is not tested on regular builds it fails once used on release (in the current situation there are not many ways it could fail because everything is still quite simple, but this often occurs when a project becomes more complex). A better approach would be to make the publishing a manual step of build.yml. Perhaps release_nuget parameter could be optional and could be used to determine how we set the the version string.
But we already have older tags in our master, so I assume an old version will be returned (but perhaps I do not understand you) and everything will work correctly until it tries to push to nuget (because you can not overwrite an existing version). |
Yes, true.
Ah, I have never actually tried overwriting with nuget.org, but it's certainly good that this is forbidden :) So, all good. The workflow will anyway work well as long as it's used wisely 😁 |
No description provided.