lucidiot/NullSharp
lucidiot
/
NullSharp
Archived
1
0
Fork 0

Prepare for NuGet

This commit is contained in:
Lucidiot 2019-04-08 03:55:35 +02:00
parent ec3a060b48
commit 7e9c981cc7
No known key found for this signature in database
GPG Key ID: AE3F7205692FA205
2 changed files with 21 additions and 1 deletions

20
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,20 @@
image: mcr.microsoft.com/dotnet/core/sdk:2.1
stages:
- test
- deploy
nullsharp-test:
stage: test
before_script:
- dotnet restore
script:
- dotnet test NullSharpTests
nullsharp-deploy:
stage: deploy
only:
- master@Lucidiot/NullSharp
when: manual
script:
- dotnet pack -c Release
- find . -type f -name '*.nupkg' -not -path '*/.git/*' | xargs -n1 dotnet nuget push -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY

View File

@ -9,7 +9,7 @@
<Authors>Lucidiot</Authors>
<Company>Lucidiot</Company>
<Description>API client for /dev/null As A Service.</Description>
<PackageLicenseUrl>https://gitlab.com/Lucidiot/NullSharp/blob/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://gitlab.com/Lucidiot/NullSharp</RepositoryUrl>
</PropertyGroup>