diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5a0fe88..d2c13d8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,6 +1,6 @@ # Publish package -name: .NET +name: Deploy on: push: @@ -13,6 +13,15 @@ jobs: steps: - uses: actions/checkout@v4 + + - name: filter changes + uses: dorny/paths-filter@v2 + id: changes + with: + filters: | + project: + - 'waifuVault=csharp-api.csproj' + - name: Setup .NET uses: actions/setup-dotnet@v4 with: @@ -22,4 +31,5 @@ jobs: - name: Build run: dotnet pack - name: Publish + if: steps.changes.outputs.project == 'true' run: dotnet nuget push bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_TOKEN }} --source https://api.nuget.org/v3/index.json diff --git a/README.md b/README.md index a83a6bd..4f274da 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # waifuvault-C#-api +![tests](https://github.com/waifuvault/waifuVault-csharp-api/actions/workflows/dotnet.yml/badge.svg) + This contains the official API bindings for uploading, deleting and obtaining files with [waifuvault.moe](https://waifuvault.moe/). Contains a full up to date API for interacting with the service