Skip to content

Commit

Permalink
Remove GitVersion completely
Browse files Browse the repository at this point in the history
  • Loading branch information
bijington committed Mar 3, 2024
1 parent abce088 commit 5d0f2b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/nuget-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Verify commit exists in origin/main
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/main
- name: Get version information from tag
id: get_version
Expand All @@ -29,11 +31,11 @@ jobs:
run: dotnet pack engine/Orbit.Engine/Orbit.Engine.csproj -c Release /p:Version=${{ steps.get_version.outputs.version-without-v }} --no-build --output .

- name: Push
run: dotnet nuget push Orbit.Engine.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push Bijington.Orbit.Engine.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}

- name: Push symbols
run: dotnet nuget push Orbit.Engine.${{ steps.get_version.outputs.version-without-v }}.snupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push Bijington.Orbit.Engine.${{ steps.get_version.outputs.version-without-v }}.snupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}
10 changes: 3 additions & 7 deletions engine/Orbit.Engine/Orbit.Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@

<PropertyGroup>
<Authors>Shaun Lawrence</Authors>
<Description>The Orbit engine is a lightweight 2D game engine built on top of .NET MAUI Graphics. </Description>
<Description>The Orbit engine is a lightweight 2D game engine built on top of .NET MAUI Graphics.</Description>

<PackageTags>.NET MAUI, Game Engine, 2D Game</PackageTags>

<PackageId>Orbit.Engine</PackageId>
<PackageId>Bijington.Orbit.Engine</PackageId>

<RepositoryUrl>https://github.com/bijington/orbit</RepositoryUrl>
<PackageProjectUrl>https://github.com/bijington/orbit</PackageProjectUrl>
<Product>Orbit Game Engine</Product>
<Copyright>Copyright(c) 2024 Shaun Lawrence</Copyright>

<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down Expand Up @@ -67,10 +67,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit 5d0f2b5

Please sign in to comment.