You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to user guide, pushing on a release branch (main/master by default) should upload a draft release, but it doesn't.
Depending on the kind of GitHub event, the run command will automatically:
If it is a pull-request or a push to a non release branch, it will perform a full build.
If it is a push to a branch and the branch is a release branch (configured in github.branches), then it will perform a full build and it will upload a release draft with changelog with the name of the branch prefixed by draft-{name_of_the_branch} (example: draft-main). You can disable the create of a draft release but it is usually convenient to look at what will be your next release notes.
If it is a push with a tag version (e.g v1.9.6 as configured with [github] section in the configuration) it will perform a full build with publish
For an application, it will publish multiple cross-compiled packages to your release
── Configuring ─────────────────────────────────────────────────────────────────
2023/03/19 09:20:00.745 info: [2] Running from GitHub: user = ArmaForces, repo = ArmaServerManager, event = push, ref_name = master, ref_type = branch
2023/03/19 09:20:00.750 info: [3] Loading configuration from /home/runner/work/ArmaServerManager/ArmaServerManager/dotnet-releaser.toml
2023/03/19 09:20:00.872 info: [5] Loading 1 projects
2023/03/19 09:20:08.137 info: [6] Packages and Projects
┌──────────────────────────────┬──────┬─────────┬────────────────────┬──────────────────┬───────────┬───────┐
│ Project │ Kind │ Version │ TargetFramework(s) │ License │ Packable? │ Test? │
├──────────────────────────────┼──────┼─────────┼────────────────────┼──────────────────┼───────────┼───────┤
│ … │ │ │ │ │ │ │
│ ArmaForces.ArmaServerManager │ exe │ 0.1 │ net6.0 │ No license found │ │ │
└──────────────────────────────┴──────┴─────────┴────────────────────┴──────────────────┴───────────┴───────┘
2023/03/19 09:20:08.192 info: [7] Connecting to GitHub
2023/03/19 09:20:08.951 info: [8] The trigger event is push and the branch master. Build only mode selected.
I see that a BuildInformation.AllowPublishDraft is set to true twice (for Publish and for Run or Build if not disabled), but the property is never accessed.
The text was updated successfully, but these errors were encountered:
As I understand, the problem is not in BuildInformation.AllowPublishDraft or smth like this. This is architecture restriction. Current implementation expect NuGet pacakge for creating change log. I see in code this call tree:
So, if you don't have NuGet packags in repo that change CreateOrUpdateReleaseImpl method will be skipped. I faced with same problem while using dotnet-releaser with console tool and ASP project.
@xoofx, what you think about supporting change log publishing for scenario without NuGet?
I don't remember exactly why I had to do both the package upload and changelog together, but I remember having problems posting a draft release back in the days and it was conflicting with packages uploads, or it was a problem with publishing the release later. I couldn't make it work but forgot exactly why... 🤔
According to user guide, pushing on a release branch (main/master by default) should upload a draft release, but it doesn't.
Workflow and dotnet-releaser.toml. Below is a log from Github Actions at the exact commit:
I see that a
BuildInformation.AllowPublishDraft
is set to true twice (for Publish and for Run or Build if not disabled), but the property is never accessed.The text was updated successfully, but these errors were encountered: