You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
2.3 KiB

  1. # For maintainers only
  2. ## Responsibilities
  3. Please go through this link [Maintainer Responsibility](https://gist.github.com/abperiasamy/f4d9b31d3186bbd26522)
  4. ### Setup your minio-dotnet Github Repository
  5. Fork [minio-dotnet upstream](https://github.com/minio/minio-dotnet/fork) source repository to your own personal repository.
  6. ```sh
  7. $ git clone https://github.com/$USER_ID/minio-dotnet
  8. $ cd minio-dotnet
  9. ```
  10. MinIO .NET Library uses nuget for its dependency management https://nuget.org/
  11. ### Publishing a new package
  12. The steps below assume that the package is being built on Ubuntu 16.04, with following dependencies met.
  13. - Mono 4.4.2 or later
  14. - dotnet-sdk-2.1
  15. For installation instructions follow this [script](https://github.com/minio/minio-dotnet/blob/master/mono_install.sh)
  16. #### Update package Version
  17. - Update Minio/Minio.csproj with the next version in the <Version></Version> tag
  18. ```
  19. <Version>2.0.0</Version>
  20. ```
  21. - Update Minio/MinioClient.cs with the next version in the `SystemUserAgent`.
  22. #### Build
  23. ```sh
  24. $ dotnet build -c Release
  25. ```
  26. #### Verify
  27. ```sh
  28. $ cd Minio.Functional.Tests
  29. $ dotnet run
  30. ```
  31. #### Setup your nuget and download all dependencies
  32. ```sh
  33. $ nuget restore
  34. ```
  35. #### Build a package
  36. ```sh
  37. $ msbuild /t:pack ./Minio/Minio.csproj /p:Configuration=Release
  38. ... package built ...
  39. ```
  40. #### Upload the package to nuget.org
  41. Login to nuget.org(https://www.nuget.org) and find the API Key for MinIO
  42. ```sh
  43. $ export MINIO_API_KEY=??
  44. $ nuget setApiKey $MINIO_API_KEY
  45. $ nuget push .\Minio\artifacts\Minio.1.0.9.nupkg -Apikey $MINIO_API_KEY -src https://nuget.org
  46. ```
  47. #### Verify package on nuget.org
  48. Verify that latest versions of MinIO packages are available on [Nuget](https://www.nuget.org/account/Packages).
  49. #### Tag
  50. Tag and sign your release commit, additionally this step requires you to have access to MinIO's trusted private key.
  51. $ git tag -s 2.0.0
  52. $ git push
  53. $ git push --tags
  54. #### Announce
  55. Announce new release by adding release notes at https://github.com/minio/minio-dotnet/releases from trusted@min.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.
  56. To generate changelog
  57. git log --no-color --pretty=format:'-%d %s (%cr) <%an>' <last_release_tag>..<latest_release_tag>