simplified
This commit is contained in:
@ -14,11 +14,6 @@ after_script:
|
|||||||
- echo "After script section"
|
- echo "After script section"
|
||||||
- echo "For example you might do some cleanup here"
|
- echo "For example you might do some cleanup here"
|
||||||
|
|
||||||
build1:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- dotnet build
|
|
||||||
|
|
||||||
nonreg:
|
nonreg:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
@ -37,15 +32,19 @@ publish:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- src/nuget-host/bin/Release/netcoreapp2.1/publish/
|
- src/nuget-host/bin/Release/netcoreapp2.1/publish/
|
||||||
|
when: always
|
||||||
script:
|
script:
|
||||||
- dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources
|
- dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- src/*/bin/Release/*.nupkg
|
||||||
|
when: always
|
||||||
script:
|
script:
|
||||||
- dotnet pack -c Release
|
- 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/*/bin/Release/*.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
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
@ -53,7 +52,8 @@ pack:
|
|||||||
stage: deploy
|
stage: deploy
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- src/nuget-host/bin/Release/nuget-host.*.nupkg
|
- src/*/bin/Release/*.nupkg
|
||||||
|
when: always
|
||||||
script:
|
script:
|
||||||
- dotnet pack --configuration Release --no-restore
|
- dotnet pack --configuration Release --no-restore
|
||||||
- cd src/nuget-cli
|
- cd src/nuget-cli
|
||||||
|
Reference in New Issue
Block a user