コード例 #1
0
        public async void CreateGitHubRelease()
        {
            await _rfMemb.UploadReleaseToGithub();

            var rels = await _rf.client.Repository.Release.GetAll(_rf.owner, _rf.repo);

            Assert.True(_rf.IsAnyReleases);
        }
コード例 #2
0
        /// <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();
        }