Skip to content

Commit 09f3a75

Browse files
committed
Attempt to get rid of setting the version manually.
1 parent e7dbfc4 commit 09f3a75

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/CreateSignNuGet.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Create NuGet Package
20-
run: dotnet pack ./working
19+
- name: Create NuGet Package (Branch)
20+
if: github.ref_type != 'tag'
21+
run: dotnet pack ./working --version-suffix "ci-${{ github.run_number }}" -c Release
22+
23+
- name: Create NuGet Package (Tag)
24+
if: github.ref_type == 'tag'
25+
run: dotnet pack ./working -p:PackageVersion=${{ github.ref_name }} -c Release
2126

2227
- name: Find created nuget
2328
id: findcreatednuget

working/templatepack.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageType>template</PackageType>
5-
<PackageVersion>1.0.17</PackageVersion>
5+
<Version Condition="'$(Configuration)' == 'Debug'">1.0.0</Version>
66
<PackageId>Skyline.DataMiner.VisualStudioTemplates</PackageId>
77
<Title>DataMiner DotNet Templates</Title>
88
<Authors>SkylineCommunications</Authors>

0 commit comments

Comments
 (0)