public async void CreateGitHubRelease() { await _rfMemb.UploadReleaseToGithub(); var rels = await _rf.client.Repository.Release.GetAll(_rf.owner, _rf.repo); Assert.True(_rf.IsAnyReleases); }
/// <summary> /// Creates files for release using Squirrel.Windows and upload them to GitHub release page. /// All information (Repository, Versions, Title, Description) should be specified in csproj file. /// Example: /// UpdateManager test.csproj /// will seek first csproj file in the current directory /// after that will generate release files from the package in bin\Release /// The name of package is 'PackageId.Version.nupkg' /// </summary> /// <param name="fileProject">Path of csproj file. By default first csproj file in the current directory.</param> // static void Main(string fileProject) static void Main(string[] args) { var upd = new ReleaseFactory(args[0]); upd.CreateRelease(); upd.UploadReleaseToGithub().Wait(); }