Skip to content

Commit

Permalink
Configured publishing to NuGet
Browse files Browse the repository at this point in the history
  • Loading branch information
alperensert committed Nov 8, 2022
1 parent 92491f5 commit 474e580
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to NuGet Package Registry

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.x"
- name: Install dependencies
run: dotnet restore
- name: Pack the Package
run: dotnet pack ./CaptchaAI/CaptchaAI.csproj --configuration Release -p:PackageVersion=${{ github.event.release.tag_name }}
- name: PushNuget
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_PUBLISH_KEY }} --skip-duplicate
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
# CaptchaAI.IO Library for .NET Core
---

[Captchaai.io](https://dashboard.captchaai.io/passport/register?inviteCode=kXa8cbNF-b2l) Library.
![Nuget](https://img.shields.io/nuget/dt/CaptchaAI?style=for-the-badge) ![Nuget](https://img.shields.io/nuget/v/CaptchaAI?style=for-the-badge) ![GitHub last commit](https://img.shields.io/github/last-commit/alperensert/CaptchaAI?style=for-the-badge) ![GitHub Release Date](https://img.shields.io/github/release-date/alperensert/CaptchaAI?style=for-the-badge) ![GitHub Repo stars](https://img.shields.io/github/stars/alperensert/CaptchaAI?style=for-the-badge)

Register now from [here!](https://dashboard.captchaai.io/passport/register?inviteCode=kXa8cbNF-b2l)
[Captchaai.io](https://dashboard.captchaai.io/passport/register?inviteCode=kXa8cbNF-b2l) Library for .NET Core. Register now from [here!](https://dashboard.captchaai.io/passport/register?inviteCode=kXa8cbNF-b2l)

### Installation
via Package Manager:
```
NuGet\Install-Package CaptchaAI -Version 1.0.0-alpha
NuGet\Install-Package CaptchaAI -Version 1.0.0
```
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.

via .NET CLI:
```ssh
dotnet add package CaptchaAI --version 1.0.0-alpha
dotnet add package CaptchaAI --version 1.0.0
```

via adding PackageReference:
```xml
<PackageReference Include="CaptchaAI" Version="1.0.0-alpha" />
<PackageReference Include="CaptchaAI" Version="1.0.0" />
```
For projects that support PackageReference, copy this XML node into the project file to reference the package.

Expand Down

0 comments on commit 474e580

Please sign in to comment.