From b1efbc31c0eb8026d2170a96f59d9f0b8ce8f8b5 Mon Sep 17 00:00:00 2001 From: Samuele Emilio Locatelli Date: Sat, 16 Sep 2023 08:51:49 +0000 Subject: [PATCH] Update .gitlab-ci.yml file: fix variable explosion in pack/push stage --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e54c1c3..0beeaec9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -137,9 +137,9 @@ SDK-stable: script: - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Release /verbosity:minimal /m' - '& Remove-Item *.nupkg' - - '& $env:NUGET_PATH pack $env:APP_NAME.Release.nuspec' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Release.nuspec"' - '& $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted' - - '& $env:NUGET_PATH push $env:APP_NAME.$env:NEW_REL.nupkg -Source https://nexus.steamware.net/repository/nuget-hosted' + - '& $env:NUGET_PATH push "$env:APP_NAME.$env:NEW_REL.nupkg" -Source https://nexus.steamware.net/repository/nuget-hosted' SDK-unstable: stage: sdk @@ -157,9 +157,9 @@ SDK-unstable: script: - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Debug /verbosity:minimal /m' - '& Remove-Item *.nupkg' - - '& $env:NUGET_PATH pack $env:APP_NAME.Debug.nuspec' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' - '& $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted' - - '& $env:NUGET_PATH push $env:APP_NAME.$env:NEW_DEB.nupkg -Source https://nexus.steamware.net/repository/nuget-hosted' + - '& $env:NUGET_PATH push "$env:APP_NAME.$env:NEW_DEB.nupkg" -Source https://nexus.steamware.net/repository/nuget-hosted' ADM:build: stage: build