Skip to content

Instantly share code, notes, and snippets.

@benscobie
Created August 4, 2018 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benscobie/73a76b0b58959ab056cc0024a1c4866d to your computer and use it in GitHub Desktop.
Save benscobie/73a76b0b58959ab056cc0024a1c4866d to your computer and use it in GitHub Desktop.
.NET build step
dotnet restore
dotnet build --configuration "Release"
dotnet publish --configuration "Release" src/Website/Website.csproj --output published-website
dotnet /opt/octopus/cli/Octo.dll pack --id MyProject.Website --version "${BUILD_NUMBER}" --basePath src/Website/published-website --format=zip
dotnet /opt/octopus/cli/Octo.dll push --package MyProject.Website."${BUILD_NUMBER}".zip --server http://octopus/ --apiKey API-YOURAPIKEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment