fix: nuget packing in release-dotnet-native.yaml (#524)

Seems like there are some weird subtle differences between Windows and
Linux
This commit is contained in:
Muhammad Azeez
2023-11-09 10:00:35 +03:00
committed by GitHub
parent 91257f0a54
commit 2fb29025c9
5 changed files with 12 additions and 70 deletions

View File

@@ -10,7 +10,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
fetch-tags: true
with:
fetch-depth: 0
filter: tree:0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3.0.3
@@ -40,7 +42,10 @@ jobs:
mkdir -p dotnet/nuget/runtimes/linux-musl-arm64/native/
tar -xvzf libextism-aarch64-unknown-linux-musl-main.tar.gz -C dotnet/nuget/runtimes/linux-musl-arm64/native/
- name: Pack NuGet packages
run: |
find ./dotnet/nuget -type f -name "*.csproj" -exec dotnet pack {} -o release-artifacts \;
- name: Publish NuGet packages
run: |
dotnet pack .\dotnet\nuget\Nuget.sln -o release-artifacts
dotnet nuget push --source https://api.nuget.org/v3/index.json ./release-artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }}