diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index aafc9df..5e8ba77 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -29,11 +29,8 @@ jobs:
9.0.x
10.0.x
- - name: Prepare local NuGet source
- run: mkdir -p nuget
-
- name: Create NuGet Package
- run: dotnet pack Raylib-cs -c Release --output nuget
+ run: dotnet pack Raylib-cs -c Release --output Raylib-cs/nuget
- name: Restore + Install Built Package
run: |
@@ -46,17 +43,17 @@ jobs:
- name: Upload NuGet Package As Artifact
uses: actions/upload-artifact@v7
with:
- path: nuget/*
+ path: Raylib-cs/nuget/*
- name: Upload NuGet Package As Release
uses: softprops/action-gh-release@v3
if: startsWith(github.ref, 'refs/tags/')
with:
- files: nuget/*
+ files: Raylib-cs/nuget/*
- name: Publish to NuGet
if: startsWith(github.ref, 'refs/tags/')
run: |
dotnet nuget push \
- nuget/* \
+ Raylib-cs/nuget/* \
--api-key ${{secrets.NUGET_API_KEY}}
diff --git a/NuGet.config b/NuGet.config
index df24209..16c10d6 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -1,7 +1,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/README.md b/README.md
index 9c9c4e8..fdc730e 100644
--- a/README.md
+++ b/README.md
@@ -120,7 +120,7 @@ package (the version set by `RaylibCsVersion` in [Directory.Build.props](Directo
`RaylibCsForceLocalNuget`:
```sh
-dotnet pack Raylib-cs -c Release -o nuget
+dotnet pack Raylib-cs -c Release -o Raylib-cs/nuget
dotnet build
```
```sh
@@ -130,12 +130,12 @@ dotnet run --project Examples -p:RaylibCsForceLocalNuget=true
dotnet test -p:RaylibCsForceLocalNuget=true
```
-Note that `NuGet.config` points restore at the local `./nuget` feed, so both projects pick up the freshly packed
-package. If you skip the pack step on a fresh clone, restore fails with NU1301 (the `./nuget` source
+Note that `NuGet.config` points restore at the local `./Raylib-cs/nuget` feed, so both projects pick up the freshly packed
+package. If you skip the pack step on a fresh clone, restore fails with NU1301 (the `./Raylib-cs/nuget` source
doesn't exist) or NU1102 (Raylib-cs not found) - running the pack command fixes both.
When iterating on the binding itself, note that NuGet caches the extracted package by version and
-ignores repacks of the same version. After repacking, delete the old package from `./nuget` and clear
+ignores repacks of the same version. After repacking, delete the old package from `./Raylib-cs/nuget` and clear
the cached copy (`dotnet nuget locals global-packages --clear`, or delete
`~/.nuget/packages/raylib-cs/`) before restoring again.
diff --git a/Raylib-cs/nuget/.keep b/Raylib-cs/nuget/.keep
new file mode 100644
index 0000000..e69de29