link warn & deploy to gitlab

broken/ef
Paul Schneider 3 years ago
parent 61ba3b2bf8
commit 4fa03c5a1d
2 changed files with 10 additions and 1 deletions

@ -40,6 +40,15 @@ publish:
script: script:
- dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources - dotnet publish --version-suffix ci --configuration Release --ignore-failed-sources
deploy:
stage: deploy
script:
- dotnet pack -c Release
- dotnet nuget add source "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/packages/nuget/index.json" --name gitlab --username gitlab-ci-token --password $CI_JOB_TOKEN --store-password-in-clear-text
- dotnet nuget push "bin/Release/*.nupkg" --source gitlab
only:
- master
pack: pack:
stage: deploy stage: deploy
artifacts: artifacts:

@ -8,7 +8,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Mono.Options" Version="5.3.0" /> <PackageReference Include="Mono.Options" Version="5.3.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="Newtonsoft.Json" Version="11.0.1"/>
<Reference Include="System.Net.Http" Version="4.0.0"/> <Reference Include="System.Net.Http" Version="4.0.0"/>
</ItemGroup> </ItemGroup>
</Project> </Project>

Loading…