From 7c64d1a0847d169e2d72eee39b40820e774be01a Mon Sep 17 00:00:00 2001 From: "Peyman M." <16763358+peymanr34@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:32:44 +0330 Subject: [PATCH] Update the build script. --- .github/workflows/publish.yml | 2 +- build.cake | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4814c15..66f4407 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,4 +23,4 @@ jobs: script-path: build.cake target: Pack arguments: | - packageversion: ${{ github.event.release.tag_name }} + package-version: ${{ github.event.release.tag_name }} diff --git a/build.cake b/build.cake index 223e3a5..e5751b1 100644 --- a/build.cake +++ b/build.cake @@ -1,7 +1,7 @@ var target = Argument("target", "Test"); var configuration = Argument("configuration", "Release"); -var version = Argument("packageversion", ""); +var version = Argument("package-version", ""); var solution = "./Source/MovieCollection.OpenMovieDatabase.sln"; var artifacts = "./.artifacts"; @@ -60,12 +60,11 @@ Task("Pack") DotNetPack(solution, new DotNetPackSettings { - NoBuild = true, NoRestore = true, OutputDirectory = artifacts, Configuration = configuration, MSBuildSettings = new DotNetMSBuildSettings() - .WithProperty("PackageVersion", actualVersion) + .WithProperty("Version", actualVersion) }); var files = GetFiles($"{artifacts}/*.nupkg");