From f60cc4573decc565bf3c3793625aa7afde618e84 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 8 Aug 2025 09:53:08 +0200 Subject: [PATCH] Aggiunto step x vers main/release --- .gitlab-ci.yml | 48 +++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c40409b..3d77d8f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -252,9 +252,9 @@ WebWindowConfigurator:SDK:deploy: # - *nexusUpload -# # -------------------------------- -# # RELEASE (tags only + sdk) -# # -------------------------------- +# -------------------------------- +# RELEASE (tags only + sdk) +# -------------------------------- # Test.UI:release: # stage: release # tags: @@ -276,25 +276,23 @@ WebWindowConfigurator:SDK:deploy: # - dotnet build $env:APP_NAME/$env:APP_NAME.csproj # - dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME.csproj -p:verbosity=quiet - -# Test.UI:SDK:release: -# stage: release -# tags: -# - win -# variables: -# APP_NAME: MP.AppAuth -# SOL_NAME: Test.UI -# before_script: -# - *nuget-fix -# - dotnet restore "$env:SOL_NAME.sln" -# - *version-fix -# - *nuspec-fix -# rules: -# - if: $CI_COMMIT_BRANCH == 'main' -# needs: ["Test.UI:build"] -# script: -# - dotnet build $env:APP_NAME/$env:APP_NAME.csproj -c Release -# - '& Remove-Item *.nupkg' -# - '& $env:NUGET_PATH pack "EgwProxy.MP.Core.Release.nuspec"' -# - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' -# - '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted' +WebWindowConfigurator:SDK:release: + stage: release + tags: + - win + variables: + APP_NAME: WebWindowConfigurator + SOL_NAME: Test.UI + NU_TYPE: Release + before_script: + - *nuget-fix + - dotnet restore "$env:SOL_NAME.sln" + rules: + - if: $CI_COMMIT_BRANCH == 'main' + needs: ["Test.UI:build"] + script: + - dotnet build $env:APP_NAME/$env:APP_NAME.csproj + - *nuspec-fix + - dotnet pack -p:Configuration=Debug -p:verbosity=quiet -p:PackageID=Egw.Lux.$env:APP_NAME --output $env:APP_NAME/bin/ $env:APP_NAME/$env:APP_NAME.csproj + - '& "$env:NUGET_PATH" setapikey $NUGET_API_KEY -source http://nexus.steamware.net/repository/nuget-hosted' + - '& "$env:NUGET_PATH" push $env:APP_NAME/bin/Egw.Lux.$env:APP_NAME.$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'