Skip to content

Commit fc89977

Browse files
committed
Attempt to get rid of setting the version manually.
(cherry picked from commit 09f3a75)
1 parent 3a3ff14 commit fc89977

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
@@ -17,8 +17,13 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919

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

2328
- name: Find created nuget
2429
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.Internal</PackageId>
77
<Title>DataMiner DotNet Templates</Title>
88
<Authors>SkylineCommunications</Authors>

0 commit comments

Comments
 (0)