Create and upload NuGet package
This reverts commit 109dd2caad2369f03df34e83b27d5b0c954cbfd8.
This commit is contained in:
parent
d0ce396de7
commit
b85261d0b2
1 changed files with 18 additions and 5 deletions
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
|
|
@ -88,11 +88,24 @@ jobs:
|
||||||
source: "raylib-osx64/raylib-${{steps.get-tag.outputs.info}}_macos/lib/libraylib.dylib"
|
source: "raylib-osx64/raylib-${{steps.get-tag.outputs.info}}_macos/lib/libraylib.dylib"
|
||||||
target: "Raylib-cs/runtimes/osx-x64/native/libraylib.dylib"
|
target: "Raylib-cs/runtimes/osx-x64/native/libraylib.dylib"
|
||||||
|
|
||||||
- name: output directory
|
- id: get-nuget-version
|
||||||
run: "ls -la ."
|
name: Get NuGet Package Version
|
||||||
|
uses: mavrosxristoforos/get-xml-info@1.0
|
||||||
|
with:
|
||||||
|
xml-file: "./Raylib-cs/Raylib-cs.csproj"
|
||||||
|
xpath: "//PackageVersion"
|
||||||
|
|
||||||
- name: 'Upload runtimes'
|
- name: Create NuGet Package
|
||||||
|
run: dotnet pack -c Release
|
||||||
|
|
||||||
|
- name: Upload NuGet Package As Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: runtimes
|
name: Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg
|
||||||
path: Raylib-cs/runtimes
|
path: Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg
|
||||||
|
|
||||||
|
- name: Upload NuGet Package As Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: Raylib-cs/bin/Release/Raylib-cs.${{steps.get-nuget-version.outputs.info}}.nupkg
|
||||||
Loading…
Reference in a new issue