|
|
|
@ -14,11 +14,6 @@ after_script:
|
|
|
|
|
- echo "After script section"
|
|
|
|
|
- echo "For example you might do some cleanup here"
|
|
|
|
|
|
|
|
|
|
build1:
|
|
|
|
|
stage: build
|
|
|
|
|
script:
|
|
|
|
|
- dotnet build
|
|
|
|
|
|
|
|
|
|
nonreg:
|
|
|
|
|
stage: test
|
|
|
|
|
script:
|
|
|
|
@ -37,15 +32,19 @@ publish:
|
|
|
|
|
artifacts:
|
|
|
|
|
paths:
|
|
|
|
|
- src/nuget-host/bin/Release/netcoreapp2.1/publish/
|
|
|
|
|
when: always
|
|
|
|
|
script:
|
|
|
|
|
- dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources
|
|
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
|
stage: deploy
|
|
|
|
|
artifacts:
|
|
|
|
|
paths:
|
|
|
|
|
- src/*/bin/Release/*.nupkg
|
|
|
|
|
when: always
|
|
|
|
|
script:
|
|
|
|
|
- dotnet pack -c Release
|
|
|
|
|
- dotnet nuget push src/nuget-host/bin/Release/nuget-host.*.nupkg -s "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" -k $CI_JOB_TOKEN
|
|
|
|
|
- dotnet nuget push src/nuget-cli/bin/Release/nuget-cli.*.nupkg -s "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" -k $CI_JOB_TOKEN
|
|
|
|
|
- dotnet nuget push src/*/bin/Release/*.nupkg -s "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" -k $CI_JOB_TOKEN
|
|
|
|
|
only:
|
|
|
|
|
- master
|
|
|
|
|
|
|
|
|
@ -53,7 +52,8 @@ pack:
|
|
|
|
|
stage: deploy
|
|
|
|
|
artifacts:
|
|
|
|
|
paths:
|
|
|
|
|
- src/nuget-host/bin/Release/nuget-host.*.nupkg
|
|
|
|
|
- src/*/bin/Release/*.nupkg
|
|
|
|
|
when: always
|
|
|
|
|
script:
|
|
|
|
|
- dotnet pack --configuration Release --no-restore
|
|
|
|
|
- cd src/nuget-cli
|
|
|
|
|