zcsizmadia commented on pull request #1536:
URL: https://github.com/apache/avro/pull/1536#issuecomment-1050051899


   @RyanSkraba Here is a possible solution to simplify the automation if many 
packages has to be published is:
   
   1. Set the `IsPackable` prop in the csproj files to true only for the 
packages which should be pushed.
   2. `dotnet pack ...` will create nupkg files only for projects where 
IsPackable=true
   3. Create a simple target  named e.g. PushToNuget, which is executing 
`dotnet nuget push if IsPackable=true
   
   In this case the deployment is pretty much:
   ```
   dotnet pack -c Release -p:Version=1.2.3 Avro.sln
   dotnet build -t:PushToNuget Avro.sln
   ```
   
   Maybe add these steps to ./build.sh asa `publish` command?
   
   So the  the pushed packages are determined by the the csproj files, 
whichever is marked to  be packable, and have a nupkg output.
    Of course this makes sense if there are many packages, otherwise the effott 
is the same.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to