From cd98fb6a7ede5072ba22330bd81a842b79b9eae9 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 26 May 2021 20:20:42 +0200 Subject: [PATCH] update syntax yml --- .gitlab-ci.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05f9c6cc..a17cae42 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,6 +43,19 @@ test: script: - dotnet test + + +staging: + stage: staging + # only: + # - develop + needs: ["build"] + before_script: + - *nuget-fix + - dotnet restore + script: + - dotnet publish -p:PublishReadyToRun=true -p:m=8 -p:DeployOnBuild=true -p:Targets=Publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:OutputPath=bin/ -verbosity:minimal MP.Stats/MP.Stats.csproj + release: stage: release only: @@ -58,18 +71,6 @@ release: - -staging: - stage: staging - # only: - # - develop - needs: ["build"] - before_script: - - *nuget-fix - - dotnet restore - script: - - dotnet publish -p:PublishReadyToRun=true -p:m=8 -p:DeployOnBuild=true -p:Targets=Publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:OutputPath=bin/ -verbosity:minimal MP.Stats/MP.Stats.csproj - # BHS:staging: # stage: staging # rules: