Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/dotnet_tool_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
uses: devcontainers/ci@v0.3
with:
runCmd: |
dotnet cake --target Pack-DotNetTool
dotnet cake --target Pack-DotNetTool --version ${{ inputs.version }}

- name: Publish to NuGet (optional)
if: startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Release
on:
workflow_dispatch: {}

permissions:
contents: write


jobs:
get-version:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Release");
var version = Argument("package-version", "0.1.0"); // default version if none is passed

var srcDirectory = "./src";
var consoleCsproj = $"{srcDirectory}/BuslyCLI.Console/BuslyCLI.Console.csproj";
Expand Down Expand Up @@ -74,6 +75,10 @@ Task("Pack-DotNetTool")
{
Configuration = configuration,
OutputDirectory = "./artifacts/nupkgs",
MSBuildSettings = new DotNetMSBuildSettings
{
Version = version,
},
});
});

Expand Down