Skip to content

Commit

Permalink
Disable GitVersion for GitHub build
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided committed Aug 18, 2023
1 parent 6965864 commit 68fc3ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<PropertyGroup>
<!-- See GitHub specific overrides below -->
<RepositoryUrl>https://git.nyris.io/shared/extensions/Nyris.Extensions.AspNetCore.CacheControl.git</RepositoryUrl>
<RepositoryUrl>$(PackageProjectUrl).git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

Expand All @@ -41,11 +41,11 @@
<!-- GitHub -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<PackageProjectUrl>https://github.com/nyris/Nyris.Extensions.AspNetCore.CacheControl</PackageProjectUrl>
<RepositoryUrl>https://github.com/nyris/Nyris.Extensions.AspNetCore.CacheControl.git</RepositoryUrl>
<RepositoryUrl>$(PackageProjectUrl).git</RepositoryUrl>
</PropertyGroup>
<ItemGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="[1.1.1,2.0.0)" PrivateAssets="All" />
<PackageReference Include="GitVersion.MsBuild" Version="[5.12.0,6.0.0)" PrivateAssets="All" />
<!-- <PackageReference Include="GitVersion.MsBuild" Version="[5.12.0,6.0.0)" PrivateAssets="All" /> -->
</ItemGroup>

<PropertyGroup>
Expand Down

0 comments on commit 68fc3ab

Please sign in to comment.