Skip to content

Commit

Permalink
Update the build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
peymanr34 committed Oct 25, 2024
1 parent cc66240 commit 7c64d1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 2 additions & 3 deletions build.cake
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 7c64d1a

Please sign in to comment.