mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #542] WIP: Automating Deploy to NuGet and Release #1085
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/542
State: closed
Merged: No
In response to #506
Changes Not Directly Related to Automated Release/Push
GitVersion changes
string version = args.Length > 0 ? args[0] : "";andRunTargetsAndExit(args.Skip(1).ToArray());kinda bother me, but I wasn't sure how you would want to handle it, so I did a quick and dirty that allowed automation to run, but does require you to give it a version when specifying a target. I could just write it to a file and pull it in if the file exists if you want.GitVersion is fairly configurable, and you can manually push/create tags to change the major/minor revisions without configuring anything.
Gihtub Releases
This is dependant on a github token being created (and stored as a secret with the name
SharpCompress_Token. It needs therepoandread:orgscopes (https://github.com/settings/tokens). If you add it as a secret for this repo, even if an action printed it to the logs, it should be sanitized before it was written.I have it set to save them as drafts with the nuget and symbol package attached. This should allow you to fill in wahtever release notes you like before publishing. This can be configured.
NuGet Releases
Similar to GitHub Releases, you need a secret named
SharpCompress_NuGet_Tokenthat can be retrieved from your NuGet account. I have it overriding the versions in the file on build, so they will be automatic thanks to GitVersion.Let me know if there are Any changes needed or things that you may need help setting up or working with (I'll do what I can without compromising the security of the repo).