Browse Source

update maintainers.md for package creation (#231)

pull/232/merge
poornas 7 years ago
committed by kannappanr
parent
commit
46a21f520e
  1. 10
      MAINTAINERS.md
  2. 1
      README.md

10
MAINTAINERS.md

@ -17,13 +17,13 @@ Minio .NET Library uses nuget for its dependency management https://nuget.org/
### Publishing a new package
The steps below assume that the package is being built on Ubuntu 16.04, with following dependencies met.
- Mono 4.4.2 or later
- dotnet-dev-1.1.5
- dotnet-sdk-2.1
For installation instructions follow this [script](https://github.com/minio/minio-dotnet/blob/master/mono_install.sh)
#### Update package Version
- Update Minio/Minio.csproj with the next version in the <Version></Version> tag
```
<Version>1.0.9</Version>
<Version>2.0.0</Version>
```
- Update Minio/MinioClient.cs with the next version in the `SystemUserAgent`.
@ -45,7 +45,7 @@ $ nuget restore
#### Build a package
```sh
$ dotnet publish -c Release
$ msbuild /t:pack ./Minio/Minio.csproj /p:Configuration=Release
... package built ...
```
#### Upload the package to nuget.org
@ -53,14 +53,14 @@ Login to nuget.org(https://www.nuget.org) and find the API Key for Minio
```sh
$ export MINIO_API_KEY=??
$ nuget setApiKey $MINIO_API_KEY
$ nuget push .\Minio.1.0.9.nupkg -Apikey $MINIO_API_KEY -src https://nuget.org
$ nuget push .\Minio\artifacts\Minio.1.0.9.nupkg -Apikey $MINIO_API_KEY -src https://nuget.org
```
#### Verify package on nuget.org
Verify that latest versions of Minio packages are available on [Nuget](https://www.nuget.org/account/Packages).
#### 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.9
$ git tag -s 2.0.0
$ git push
$ git push --tags

1
README.md

@ -137,6 +137,7 @@ $ git clone https://github.com/minio/minio-dotnet && cd minio-dotnet
```cs
//Cases.MakeBucket.Run(minioClient, bucketName).Wait();
```
```
$ cd Minio.Examples
$ dotnet build -c Release
$ dotnet run

Loading…
Cancel
Save