Skip to content

Commit

Permalink
Fix target to pack and add test in build
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed May 6, 2024
1 parent f81bad0 commit d6648bd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
12 changes: 10 additions & 2 deletions Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
"type": "boolean",
"description": "Shows the execution plan (HTML)"
},
"PreReleaseFilter": {
"type": "array",
"items": {
"type": "string"
}
},
"Profile": {
"type": "array",
"description": "Defines the profiles to load",
Expand Down Expand Up @@ -99,9 +105,10 @@
"Build",
"Clean",
"Compile",
"CopyNupkg",
"GitPreRelease",
"GitRelease",
"Pack",
"PrePack",
"Release",
"Sign",
"Test"
Expand All @@ -121,9 +128,10 @@
"Build",
"Clean",
"Compile",
"CopyNupkg",
"GitPreRelease",
"GitRelease",
"Pack",
"PrePack",
"Release",
"Sign",
"Test"
Expand Down
2 changes: 1 addition & 1 deletion Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using ricaun.Nuke;
using ricaun.Nuke.Components;

class Build : NukeBuild, IPublishPack, ICopyNupkg, IPrePack
class Build : NukeBuild, IPublishPack, IPrePack, ITest // ICopyNupkg
{
bool IPack.UnlistNuget => true;
public static int Main() => Execute<Build>(x => x.From<IPublishPack>().Build);
Expand Down
2 changes: 1 addition & 1 deletion Build/Build.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace></RootNamespace>
<NoWarn>CS0649;CS0169</NoWarn>
<NukeRootDirectory>.</NukeRootDirectory>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 ricaun
Copyright (c) 2024 ricaun

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<PropertyGroup>
<PackageId>RevitVersion.DefineConstants</PackageId>
<Version>1.0.0-beta.10</Version>
<Version>1.0.0-beta.3</Version>
<ProjectGuid>{92328A76-ABD3-4197-AB06-19741F2F4566}</ProjectGuid>
</PropertyGroup>

Expand Down Expand Up @@ -101,7 +101,7 @@
<Compile Remove="**\*" />
</ItemGroup>

<Target Name="CopyFiles" AfterTargets="AfterBuild">
<Target Name="CopyFiles" AfterTargets="Pack">

<ItemGroup>
<CopyItem Include="$(OutputPath)\*.nupkg" />
Expand Down

0 comments on commit d6648bd

Please sign in to comment.