Skip to content

Commit 57b83de

Browse files
committed
Sync builder pipeline
1 parent a21f328 commit 57b83de

36 files changed

Lines changed: 618 additions & 162 deletions

.github/workflows/Compile.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
- name: Checkout
1616
uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 0
1719

1820
- name: Cache NuGet
1921
uses: actions/cache@v5
@@ -27,4 +29,5 @@ jobs:
2729
working-directory: "build"
2830
env:
2931
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
DOTNET_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }}
32+
DOTNET_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }}
33+
NuGet__InternalApiKey: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/Publish Release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313

1414
- name: Checkout
1515
uses: actions/checkout@v6
16+
with:
17+
fetch-depth: 0
1618

1719
- name: Cache NuGet
1820
uses: actions/cache@v5
@@ -26,5 +28,7 @@ jobs:
2628
working-directory: "build"
2729
env:
2830
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
DOTNET_ENVIRONMENT: "Production"
30-
NuGet__ApiKey: ${{ secrets.NICE3POINT_PACKAGES_API_KEY }}
31+
DOTNET_ENVIRONMENT: ${{ (github.ref_name == 'main' || github.ref_type == 'tag') && 'Production' || 'Development' }}
32+
Pack__Version: ${{ github.ref_name }}
33+
NuGet__InternalApiKey: ${{ secrets.GITHUB_TOKEN }}
34+
NuGet__ApiKey: ${{ secrets.NUGET_API_KEY }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*bin/
99
*temp/
1010

11-
#Nuke output folder
11+
#Build output folder
1212
/output/
1313

1414
#User-specific files

.run/Pack.run.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<option name="PROGRAM_PARAMETERS" value="pack"/>
55
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/build/bin/Debug/net10.0"/>
66
<option name="PASS_PARENT_ENVS" value="1"/>
7+
<envs>
8+
<env name="Pack__Version" value="2026.0.0-preview.1.20251228"/>
9+
</envs>
710
<option name="ENV_FILE_PATHS" value=""/>
811
<option name="REDIRECT_INPUT_PATH" value=""/>
912
<option name="MIXED_MODE_DEBUG" value="0"/>

Changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 2026.0.2-preview.1.20251230
2+
3+
Initial release. Enjoy!

Directory.Build.props

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,4 @@
77
<NoWarn>$(NoWarn);NU1507</NoWarn>
88
</PropertyGroup>
99

10-
<PropertyGroup Condition="$(Configuration.Contains('R21'))">
11-
<RevitVersion>2021</RevitVersion>
12-
<TargetFramework>net48</TargetFramework>
13-
</PropertyGroup>
14-
<PropertyGroup Condition="$(Configuration.Contains('R22'))">
15-
<RevitVersion>2022</RevitVersion>
16-
<TargetFramework>net48</TargetFramework>
17-
</PropertyGroup>
18-
<PropertyGroup Condition="$(Configuration.Contains('R23'))">
19-
<RevitVersion>2023</RevitVersion>
20-
<TargetFramework>net48</TargetFramework>
21-
</PropertyGroup>
22-
<PropertyGroup Condition="$(Configuration.Contains('R24'))">
23-
<RevitVersion>2024</RevitVersion>
24-
<TargetFramework>net48</TargetFramework>
25-
</PropertyGroup>
26-
<PropertyGroup Condition="$(Configuration.Contains('R25'))">
27-
<RevitVersion>2025</RevitVersion>
28-
<TargetFramework>net8.0-windows</TargetFramework>
29-
</PropertyGroup>
30-
<PropertyGroup Condition="$(Configuration.Contains('R26'))">
31-
<RevitVersion>2026</RevitVersion>
32-
<TargetFramework>net8.0-windows</TargetFramework>
33-
</PropertyGroup>
34-
3510
</Project>

Directory.Packages.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<ItemGroup>
1010
<!-- Revit Platform -->
11-
<PackageVersion Include="Nice3point.Revit.Build.Tasks" Version="3.0.1"/>
1211
<PackageVersion Include="Nice3point.Revit.Api.RevitAPI" Version="$(RevitVersion).*" Condition="$(RevitVersion) != ''"/>
1312
<PackageVersion Include="Nice3point.Revit.Api.RevitNET" Version="$(RevitVersion).*" Condition="$(RevitVersion) != ''"/>
1413
<PackageVersion Include="Nice3point.Revit.Injector" Version="$(RevitVersion).*" Condition="$(RevitVersion) != ''"/>
@@ -26,7 +25,7 @@
2625
<PackageVersion Include="ILRepack" Version="2.0.44"/>
2726

2827
<!-- Testing -->
29-
<PackageVersion Include="TUnit" Version="1.7.0"/>
28+
<PackageVersion Include="TUnit" Version="1.7.7"/>
3029
<PackageVersion Include="Shouldly" Version="4.3.0"/>
3130

3231
<!-- Development Tools -->
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Nice3point.Revit.Sdk/6.0.0-preview.1.20251228">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<Configurations>Debug.R22;Debug.R23;Debug.R24;Debug.R25;Debug.R26</Configurations>
6-
<Configurations>$(Configurations);Release.R22;Release.R23;Release.R24;Release.R25;Release.R26</Configurations>
5+
<Configurations>Debug.R21;Debug.R22;Debug.R23;Debug.R24;Debug.R25;Debug.R26</Configurations>
6+
<Configurations>$(Configurations);Release.R21;Release.R22;Release.R23;Release.R24;Release.R25;Release.R26</Configurations>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Nice3point.Revit.Build.Tasks"/>
1110
<PackageReference Include="Nice3point.Revit.Api.RevitAPI"/>
1211
<PackageReference Include="Nice3point.Revit.Injector"/>
1312
</ItemGroup>
@@ -16,4 +15,4 @@
1615
<ProjectReference Include="..\Nice3point.TUnit.Revit\Nice3point.TUnit.Revit.csproj"/>
1716
</ItemGroup>
1817

19-
</Project>
18+
</Project>

Nice3point.TUnit.Revit.slnx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<Solution>
22
<Configurations>
3+
<BuildType Name="Debug.R21"/>
34
<BuildType Name="Debug.R22"/>
45
<BuildType Name="Debug.R23"/>
56
<BuildType Name="Debug.R24"/>
67
<BuildType Name="Debug.R25"/>
78
<BuildType Name="Debug.R26"/>
9+
<BuildType Name="Release.R21"/>
810
<BuildType Name="Release.R22"/>
911
<BuildType Name="Release.R23"/>
1012
<BuildType Name="Release.R24"/>
@@ -13,16 +15,19 @@
1315
</Configurations>
1416
<Folder Name="/Solution Items/">
1517
<File Path="build/appsettings.json"/>
18+
<File Path="Changelog.md"/>
1619
<File Path="Directory.Build.props"/>
1720
<File Path="Directory.Packages.props"/>
1821
<File Path="Readme.md"/>
1922
</Folder>
2023
<Project Path="build/Build.csproj">
24+
<BuildType Solution="Debug.R21|*" Project="Debug"/>
2125
<BuildType Solution="Debug.R22|*" Project="Debug"/>
2226
<BuildType Solution="Debug.R23|*" Project="Debug"/>
2327
<BuildType Solution="Debug.R24|*" Project="Debug"/>
2428
<BuildType Solution="Debug.R25|*" Project="Debug"/>
2529
<BuildType Solution="Debug.R26|*" Project="Debug"/>
30+
<BuildType Solution="Release.R21|*" Project="Release"/>
2631
<BuildType Solution="Release.R22|*" Project="Release"/>
2732
<BuildType Solution="Release.R23|*" Project="Release"/>
2833
<BuildType Solution="Release.R24|*" Project="Release"/>

Nice3point.TUnit.Revit/Nice3point.TUnit.Revit.csproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Nice3point.Revit.Sdk/6.0.0-preview.1.20251228">
22

33
<PropertyGroup>
44
<OutputType>Library</OutputType>
5-
<Configurations>Debug.R22;Debug.R23;Debug.R24;Debug.R25;Debug.R26</Configurations>
6-
<Configurations>$(Configurations);Release.R22;Release.R23;Release.R24;Release.R25;Release.R26</Configurations>
5+
<Configurations>Debug.R21;Debug.R22;Debug.R23;Debug.R24;Debug.R25;Debug.R26</Configurations>
6+
<Configurations>$(Configurations);Release.R21;Release.R22;Release.R23;Release.R24;Release.R25;Release.R26</Configurations>
77
</PropertyGroup>
88

99
<PropertyGroup>
@@ -38,7 +38,6 @@
3838
</ItemGroup>
3939

4040
<ItemGroup>
41-
<PackageReference Include="Nice3point.Revit.Build.Tasks" PrivateAssets="all"/>
4241
<PackageReference Include="Nice3point.Revit.Api.RevitAPI" PrivateAssets="all"/>
4342
<PackageReference Include="Nice3point.Revit.Injector" PrivateAssets="all"/>
4443
<PackageReference Include="TUnit"/>

0 commit comments

Comments
 (0)