From ac8ba8c05e0d31005a105f926e2cc9285b476174 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 4 Aug 2022 12:47:13 +0200 Subject: [PATCH] update yaml x deploy vers unstable --- .gitlab-ci.yml | 49 ++++++++++++++++++++----------------------------- 1 file changed, 20 insertions(+), 29 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b780a6c..cf6b4cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -110,15 +110,6 @@ variables: echo "mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileCLogOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html" mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileCLogOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html -# $File2Send = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip" -# mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$CI_COMMIT_BRANCH/LAST/$env:APP_NAME-$version.zip -# mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$CI_COMMIT_BRANCH/ARCHIVE/$VersNumb/$env:APP_NAME-$version.zip -# mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send".md5" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip".md5 -# mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send".sha1" https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip".sha1" - - -# mCurl -v -u $env:NEXUS_USER:$env:NEXUS_PASSWD --upload-file bin/release/$env:APP_NAME.zip $env:NEXUS_SERVER/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip - stages: - build - release @@ -139,23 +130,23 @@ SDK:Build: script: - '& "$env:MSBUILD_PATH" $env:APP_NAME\$env:APP_NAME.csproj -target:Build /p:Configuration=Debug /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' -# SDK:Release: -# stage: release -# tags: -# - win -# only: -# refs: -# - develop -# - main -# - master -# before_script: -# - *nuget-fix -# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln"' # path alla solution corrente -# - *version-fix -# - *cleanup-zip -# script: -# - '& "$env:MSBUILD_PATH" $env:APP_NAME\$env:APP_NAME.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' -# - *zipper -# - *hashBuild -# - *nexusUpload -# needs: ["SDK:Build"] \ No newline at end of file +SDK:Release: + stage: release + tags: + - win + only: + refs: + - develop + - main + - master + before_script: + - *nuget-fix + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln"' # path alla solution corrente + - *version-fix + - *cleanup-zip + script: + - '& "$env:MSBUILD_PATH" $env:APP_NAME\$env:APP_NAME.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' + - *zipper + - *hashBuild + - *nexusUpload + needs: ["SDK:Build"] \ No newline at end of file