chore: potential fix for empty nupkg
All checks were successful
Release Rai.PacketMediator / preprocess (push) Successful in 2s
Release Rai.PacketMediator / build (push) Successful in 19s
Release Rai.PacketMediator / publish (push) Successful in 24s
Release Rai.PacketMediator / generate-licences (push) Successful in 30s

This commit is contained in:
Timothy Schenk 2024-02-08 13:45:41 +01:00
parent d330242470
commit 038a7dce86
2 changed files with 8 additions and 2 deletions

View file

@ -49,7 +49,9 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV echo "VERSION=$VERSION" >> $GITHUB_ENV
shell: bash shell: bash
- name: Pack nugets - name: Pack nugets
run: dotnet build -p:PackageVersion=${{env.VERSION}} -c Release --output . run: |
dotnet build Rai.PacketMediator.csproj -c Release -p:PackageVersion=${{env.VERSION}}
dotnet pack -c Release -p:PackaVersion=${{env.VERSION}} --output .
- name: Push to NuGet - name: Push to NuGet
run: | run: |
dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://forge.rainote.dev/api/packages/rainote/nuget/index.json dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://forge.rainote.dev/api/packages/rainote/nuget/index.json

View file

@ -4,8 +4,12 @@
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageVersion>$(PackageVersion)</PackageVersion> <PackageVersion>$(PackageVersion)</PackageVersion>
<PackageProjectUrl>https://forge.rainote.dev/rainote/PacketMediator</PackageProjectUrl>
<PackageLicenseUrl>https://forge.rainote.dev/rainote/PacketMediator/src/branch/main/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://forge.rainote.dev/rainote/PacketMediator</RepositoryUrl>
<RepositoryType>GIT</RepositoryType>
<Version>$(PackageVersion)</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>