Skip to content

Commit

Permalink
Attempt to get rid of setting the version manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichielOda committed Dec 24, 2024
1 parent e7dbfc4 commit 09f3a75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/CreateSignNuGet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Create NuGet Package
run: dotnet pack ./working
- name: Create NuGet Package (Branch)
if: github.ref_type != 'tag'
run: dotnet pack ./working --version-suffix "ci-${{ github.run_number }}" -c Release

- name: Create NuGet Package (Tag)
if: github.ref_type == 'tag'
run: dotnet pack ./working -p:PackageVersion=${{ github.ref_name }} -c Release

- name: Find created nuget
id: findcreatednuget
Expand Down
2 changes: 1 addition & 1 deletion working/templatepack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>template</PackageType>
<PackageVersion>1.0.17</PackageVersion>
<Version Condition="'$(Configuration)' == 'Debug'">1.0.0</Version>
<PackageId>Skyline.DataMiner.VisualStudioTemplates</PackageId>
<Title>DataMiner DotNet Templates</Title>
<Authors>SkylineCommunications</Authors>
Expand Down

0 comments on commit 09f3a75

Please sign in to comment.