diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f5e543b..9577684 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,12 +29,13 @@ jobs: with: dotnet-version: '10.0.x' + # GeneratePackageOnBuild=true makes pack skip its build, packing an empty bin/ on a clean runner. # Pack before logging in: the temporary key expires after an hour. - name: Pack run: | - dotnet pack ModernUO.Serialization.Annotations/ModernUO.Serialization.Annotations.csproj -c Release -o "$PACKAGE_DIR" - dotnet pack ModernUO.Serialization.Generator/ModernUO.Serialization.Generator.csproj -c Release -o "$PACKAGE_DIR" - dotnet pack ModernUO.Serialization.SchemaGenerator/ModernUO.Serialization.SchemaGenerator.csproj -c Release -o "$PACKAGE_DIR" + dotnet pack ModernUO.Serialization.Annotations/ModernUO.Serialization.Annotations.csproj -c Release -p:GeneratePackageOnBuild=false -o "$PACKAGE_DIR" + dotnet pack ModernUO.Serialization.Generator/ModernUO.Serialization.Generator.csproj -c Release -p:GeneratePackageOnBuild=false -o "$PACKAGE_DIR" + dotnet pack ModernUO.Serialization.SchemaGenerator/ModernUO.Serialization.SchemaGenerator.csproj -c Release -p:GeneratePackageOnBuild=false -o "$PACKAGE_DIR" - name: NuGet login (OIDC) id: login