Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update maintainers.MD with steps to publish package #174

Merged
merged 1 commit into from
Sep 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>