Skip to content

Commit

Permalink
Use git tag as pkg version
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad2smile committed Sep 23, 2024
1 parent c82927e commit e306837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: dotnet restore

- name: Build
run: dotnet build
run: dotnet build /p:Version=$(git describe --tags)

- name: Test with dotnet
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
Expand All @@ -40,7 +40,7 @@ jobs:
if: ${{ always() }}

- name: Create the package
run: dotnet pack --configuration Release src/KurzSharp
run: dotnet pack --configuration Release src/KurzSharp /p:Version=$(git describe --tags)

- name: Publish the package
run: |
Expand Down
1 change: 0 additions & 1 deletion src/KurzSharp/KurzSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>2.1.0</Version>
<Authors>Ahmad</Authors>
<IncludeBuildOutput>false</IncludeBuildOutput>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down

0 comments on commit e306837

Please sign in to comment.