Skip to content

Commit

Permalink
add github nuget registry
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Dec 10, 2021
1 parent bd3af8f commit 0201fca
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 18 deletions.
28 changes: 10 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ A wrapper of C# `FileSystemWatcher` for Windows, used in [ImageGlass](https://gi
This project is based on the *VSCode FileWatcher*: https://github.com/Microsoft/vscode-filewatcher-windows

![Nuget](https://img.shields.io/nuget/dt/FileWatcherEx?color=%2300a8d6&logo=nuget)
[![Build status](https://ci.appveyor.com/api/projects/status/t20tf9qyta8enhu1?svg=true)](https://ci.appveyor.com/project/d2phap/filewatcherex)


## Resource links
Expand All @@ -19,8 +18,13 @@ This project is based on the *VSCode FileWatcher*: https://github.com/Microsoft/

## Installation
Run the command
```bat
```bash
# Nuget package
Install-Package FileWatcherEx


# or use Github registry
dotnet add PROJECT package FileWatcherEx
```

## Usage
Expand Down Expand Up @@ -59,21 +63,9 @@ void FW_OnRenamed(object sender, FileChangedEvent e)
[MIT](LICENSE)

## Support this project

<a href="https://github.com/sponsors/d2phap" target="_blank" title="Become a sponsor">
<img src="https://img.shields.io/badge/[email protected]?maxAge=3600&logo=github" height="30" alt="Become a sponsor">
</a>

<a href="https://www.patreon.com/d2phap" target="_blank" title="Become a patron">
<img src="https://img.shields.io/badge/Patreon-@d2phap%20-e85b46.svg?maxAge=3600&logo=patreon" height="30" alt="Become a patron">
</a>

<a href="https://www.paypal.me/d2phap" target="_blank" title="Buy me a beer?">
<img src="https://img.shields.io/badge/PayPal-Donate%20$10%20-0070ba.svg?maxAge=3600&logo=paypal" height="30" alt="Buy me a beer?">
</a>

<a href="https://donorbox.org/imageglass" target="_blank" title="Wire transfer">
<img src="https://img.shields.io/badge/DonorBox-@imageglass%20-005384.svg?maxAge=3600&logo=donorbox" height="30" alt="Wire transfer">
</a>
- [GitHub sponsor](https://github.com/sponsors/d2phap)
- [Patreon](https://www.patreon.com/d2phap)
- [PayPal](https://www.paypal.me/d2phap)
- [Wire Transfers](https://donorbox.org/imageglass)

Thanks for your gratitude and finance help!
1 change: 1 addition & 0 deletions Source/FileWatcherEx/FileWatcherEx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<VersionPrefix>2.0.0</VersionPrefix>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReleaseNotes>Supports for normalizing RENAMED events and .NET 6.0</PackageReleaseNotes>
<Authors>$(Authors)</Authors>
</PropertyGroup>

<ItemGroup>
Expand Down
13 changes: 13 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="github" value="https://nuget.pkg.github.com/d2phap/index.json" />
</packageSources>
<packageSourceCredentials>
<github>
<add key="Username" value="d2phap" />
<add key="ClearTextPassword" value="YOUR_GITHUB_PAT" />
</github>
</packageSourceCredentials>
</configuration>
5 changes: 5 additions & 0 deletions nuget.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

dotnet nuget push "Source\FileWatcherEx\bin\Release\FileWatcherEx.2.0.0.nupkg" --api-key YOUR_GITHUB_PAT --source "github"


PAUSE

0 comments on commit 0201fca

Please sign in to comment.