Skip to content

Commit

Permalink
Publish nuget package (#94)
Browse files Browse the repository at this point in the history
Update repo to publish nuget package on merge to master.
  • Loading branch information
xqrzd authored May 24, 2020
1 parent 43b6be1 commit 5b292bb
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 8 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/linux.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linux CI
name: CI

on: [push]

Expand All @@ -7,8 +7,9 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1

jobs:
build:
linux_build:

name: Linux build
runs-on: ubuntu-latest

env:
Expand All @@ -33,3 +34,22 @@ jobs:
run: dotnet build --configuration Release
- name: Test
run: dotnet test --no-restore --no-build --configuration Release

publish:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true

needs: linux_build
name: Publish nuget package
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.202
- name: Publish on version change
uses: rohith/publish-nuget@v2
with:
PROJECT_FILE_PATH: src\Knet.Kudu.Client\Knet.Kudu.Client.csproj
NUGET_KEY: ${{secrets.KUDU_NUGET_API_KEY}}
Binary file added .nuget/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ Kudu provides a combination of fast inserts/updates and efficient columnar scans
[https://kudu.apache.org](https://kudu.apache.org)

## Project Status
This client is still under development and isn't ready for production use.
Issue [#17](/../../issues/17) tracks the remaining work for the first release.
A pre-release package will be released soon, until then you can checkout the repo and build the solution.
To build the solution you need the [.NET Core 3.1 SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1).
This client is in preview and isn't quite ready for production use.
Issue [#17](/../../issues/17) tracks the remaining work for the first stable release.

You can get the preview package on Nuget.

## Supported Versions
This library supports Apache Kudu 1.3 and newer. The newest version of this library
should always be used, regardless of the Apache Kudu version.
This client aims for feature parity between the official C++ and Java clients.
There should be no unsupported functionality, once this client is complete.
This client tries to maintain feature parity with the official C++ and Java clients.

## Quickstart

Expand Down
11 changes: 11 additions & 0 deletions src/Knet.Kudu.Client/Knet.Kudu.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,20 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>CS1591</NoWarn>

<PackageId>$(AssemblyName)</PackageId>
<Version>0.1.0-preview.1</Version>
<Authors>xqrzd</Authors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>.NET client for Apache Kudu</Description>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://github.com/xqrzd/kudu-client-net</PackageProjectUrl>
<RepositoryUrl>https://github.com/xqrzd/kudu-client-net</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\.nuget\icon.png" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.1.0" />
<PackageReference Include="Pipelines.Sockets.Unofficial" Version="2.1.11" />
Expand Down

0 comments on commit 5b292bb

Please sign in to comment.