Skip to content

Upload Nuget Package to nuget.org #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ jobs:
shell: bash
continue-on-error: true

- name: Push NuGet Package
- name: Push NuGet Package (GitHub Packages)
run: dotnet nuget push "${NUGET_PKG_PATH}" --source "github"

- name: Push NuGet Package (nuget.org)
run: dotnet nuget push "${NUGET_PKG_PATH}" --api-key $NUGET_API_TOKEN --source https://api.nuget.org/v3/index.json
env:
NUGET_API_TOKEN: ${{ secrets.NUGET_RELEASE_API_KEY }}

- name: Delete old release if it already exists
run: gh release delete --yes "${RELEASE_VERSION}"
continue-on-error: true
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# LethalCompany InputUtils

![NuGet Version](https://img.shields.io/nuget/v/Rune580.Mods.LethalCompany.InputUtils?link=https%3A%2F%2Fwww.nuget.org%2Fpackages%2FRune580.Mods.LethalCompany.InputUtils%2F) ![NuGet Downloads](https://img.shields.io/nuget/dt/Rune580.Mods.LethalCompany.InputUtils?link=https%3A%2F%2Fwww.nuget.org%2Fpackages%2FRune580.Mods.LethalCompany.InputUtils%2F) ![Thunderstore Version](https://img.shields.io/thunderstore/v/Rune580/LethalCompany_InputUtils?link=https%3A%2F%2Fthunderstore.io%2Fc%2Flethal-company%2Fp%2FRune580%2FLethalCompany_InputUtils%2F) ![Thunderstore Downloads](https://img.shields.io/thunderstore/dt/Rune580/LethalCompany_InputUtils?link=https%3A%2F%2Fthunderstore.io%2Fc%2Flethal-company%2Fp%2FRune580%2FLethalCompany_InputUtils%2F)


Utilities for creating InputActions and having them be accessible in-game.
InputActions created through this mod are accessible in-game via the keybinds menu added in update v45.

Expand All @@ -21,7 +24,18 @@ Use a Mod manager. I won't provide support if a mod manager wasn't used, a mod m
*This Api/Mod is still in beta, please keep in mind that stuff may change.*
Feedback is appreciated.

Download the latest release from either the [Thunderstore](https://thunderstore.io/c/lethal-company/p/Rune580/LethalCompany_InputUtils) or the [Releases](https://github.com/Rune580/LethalCompanyInputUtils/releases).
Add the nuget package to your project, if you want a copy and paste solution:

add this to your project `.csproj`
```xml
<ItemGroup>
<!-- Make sure the 'Version="..."' is set to the latest version -->
<PackageReference Include="Rune580.Mods.LethalCompany.InputUtils" Version="0.7.1" />
</ItemGroup>
```
That should be all you need to get started.

Otherwise if you don't want to use nuget, you can download the latest release from either the [Thunderstore](https://thunderstore.io/c/lethal-company/p/Rune580/LethalCompany_InputUtils) or the [Releases](https://github.com/Rune580/LethalCompanyInputUtils/releases).
Extract the zip and add a reference to the dll file of the mod in Visual Studio or Rider.

### Initializing Your Binds
Expand Down
8 changes: 6 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public override void Run(BuildContext context)
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>{context.ManifestAuthor}.{manifest.name}</id>
<id>{context.ManifestAuthor}.Mods.LethalCompany.InputUtils</id>
<version>{manifest.version_number}</version>
<description>{manifest.description}</description>
<authors>{context.ManifestAuthor}</authors>
Expand All @@ -375,9 +375,13 @@ public override void Run(BuildContext context)
<iconUrl>https://cdn.rune580.dev/icons/lethalcompany_inpututils/icon.png</iconUrl>
<icon>icon.png</icon>
<license type="file">LICENSE</license>
<dependencies>
<group targetFramework=".NETStandard2.1">
</group>
</dependencies>
</metadata>
<files>
<file src="{dllFile}" target="lib/{dllFile}" />
<file src="{dllFile}" target="lib/netstandard2.1" />
<file src="README.md" />
<file src="CHANGELOG.md" />
<file src="icon.png" />
Expand Down
Loading