Skip to content

Commit

Permalink
Update maintainers.MD with steps to publish package (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas authored and deekoder committed Sep 26, 2017
1 parent fbcdeb6 commit c80a3ee
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,55 @@ Fork [minio-dotnet upstream](https://github.com/minio/minio-dotnet/fork) source

Minio .NET Library uses nuget for its dependency management https://nuget.org/

### Publishing new package
### Publishing a new package
#### Update package Version
Update Minio.Core/Minio.Core.csproj with the next version in the <Version></Version> tag
<Version>1.0.2</Version>
Update Minio.Net452/Properties/AssemblyInfo.cs with the next AssemblyVersion and AssemblyFileVersion
[assembly: AssemblyVersion("1.0.2.0")]
[assembly: AssemblyFileVersion("1.0.2.0")]
Update the <version> tag in Minio.nuspec and Minio.core.nuspec

#### Setup your nuget and download all dependencies
#### Build
```powershell
> dotnet msbuild /p:Configuration=Release
```
or Build entire solution from Visual Studio

#### Verify
```powershell
> nuget restore
> cd Minio.Functional.Tests
> dotnet run
```

#### Compile the project and build a package
or this project can be selected from Visual Studio and click Run.

#### Setup your nuget and download all dependencies
```powershell
> .\packages\MSBuild.0.1.2\tools\Windows\MSBuild.exe /t:Rebuild /p:Configuration=Release
> nuget pack Minio/Minio.csproj
> nuget restore
```

#### Build a package
```powershell
> nuget pack Minio.nuspec
> nuget pack Minio.core.nuspec
... package built ...
```

#### Go to nuget.org
Login to nuget.org to [upload a package through browser](https://www.nuget.org/users/account/LogOn?ReturnUrl=%2Fpackages%2Fupload).
Upload both the packages generated by the previous step.

#### Tag
Tag and sign your release commit, additionally this step requires you to have access to Minio's trusted private key.
$ git tag -s 1.0.2
$ git push
$ git push --tags

#### Announce
Announce new release by adding release notes at https://github.com/minio/minio-dotnet/releases from trusted@minio.io account. Release notes requires two sections highlights and changelog. Highlights is a bulleted list of salient features in this release and Changelog contains list of all commits since the last release.

To generate changelog

Sign into nuget.org to [upload a package through browser](https://www.nuget.org/users/account/LogOn?ReturnUrl=%2Fpackages%2Fupload).
git log --no-color --pretty=format:'-%d %s (%cr) <%an>' <last_release_tag>..<latest_release_tag>

0 comments on commit c80a3ee

Please sign in to comment.