In order to use this Cake addin you need to add it to your build.cake
file in the following way
#addin Cake.Endpoint
After that the following Cake aliases are available to you.
Copies files and directories defined within endpoint definition.
Task( "Create" )
.Does( () =>
{
EndpointCreate( new Endpoint()[] );
} );
Providing an endpoint
An endpoint should be provided within the solution through an
endpoints.json
file. The file can be deserialized using the Cake.Json
addin in following way:
var endpoint = DeserializeJsonFromFile<Endpoint>( "./endpoint.json" );
Just execute the following commands after you have commited your work.
$> git tag <semver>
$> .\build.ps1 -target pack
$> git push origin master --tags
Then publish the resulting .\Cake.Endpoint.<semver>.nupkg
on
nuget.org