Skip to content

Commit

Permalink
Merge pull request #39 from bijington/feature/sl-add-nuget-info
Browse files Browse the repository at this point in the history
Include some NuGet bits
  • Loading branch information
bijington authored Feb 18, 2024
2 parents 9403937 + 26bf22e commit 941b3ca
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/dotnet-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ jobs:
run: dotnet build engine/Orbit.Engine.Tests/Orbit.Engine.Tests.csproj --no-restore
- name: Run tests
run: dotnet test engine/Orbit.Engine.Tests/Orbit.Engine.Tests.csproj --no-restore
- name: Pack engine
run: dotnet pack engine/Orbit.Engine/Orbit.Engine.csproj --no-restore
2 changes: 0 additions & 2 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@ jobs:
run: dotnet build engine/Orbit.Engine.Tests/Orbit.Engine.Tests.csproj --no-restore
- name: Run tests
run: dotnet test engine/Orbit.Engine.Tests/Orbit.Engine.Tests.csproj --no-restore
- name: Pack engine
run: dotnet pack engine/Orbit.Engine/Orbit.Engine.csproj --no-restore
30 changes: 30 additions & 0 deletions .github/workflows/nuget-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Create a (Pre)release on NuGet

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+"
jobs:
release-nuget:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Restore dependencies
run: dotnet restore engine/Orbit.Engine/Orbit.Engine.csproj

- name: Build
run: dotnet build engine/Orbit.Engine/Orbit.Engine.csproj

- name: Pack
run: dotnet pack engine/Orbit.Engine/Orbit.Engine.csproj

- 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 }}
env:
GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}
Binary file added assets/nuget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions engine/Orbit.Engine/Orbit.Engine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,45 @@
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup>

<PropertyGroup>
<Authors>Shaun Lawrence</Authors>
<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>

<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>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Configurations>Release;Debug</Configurations>
</PropertyGroup>

<!-- PackageIcon -->
<PropertyGroup>
<PackageIcon>nuget.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\assets\nuget.png" Pack="true" PackagePath="\"/>
</ItemGroup>

<!-- PackageReadmeFile -->
<PropertyGroup>
<PackageReadmeFile>readme.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\readme.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
</PropertyGroup>
Expand Down

0 comments on commit 941b3ca

Please sign in to comment.