File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 16
16
steps :
17
17
- uses : actions/checkout@v4
18
18
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
21
26
22
27
- name : Find created nuget
23
28
id : findcreatednuget
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<PackageType >template</PackageType >
5
- <PackageVersion >1.0.17</ PackageVersion >
5
+ <Version Condition = " '$(Configuration)' == 'Debug' " >1.0.0</ Version >
6
6
<PackageId >Skyline.DataMiner.VisualStudioTemplates</PackageId >
7
7
<Title >DataMiner DotNet Templates</Title >
8
8
<Authors >SkylineCommunications</Authors >
You can’t perform that action at this time.
0 commit comments