Skip to content

Commit

Permalink
Add badge to readme, set yml to only attempt update on project file c…
Browse files Browse the repository at this point in the history
…hange
  • Loading branch information
nakedmcse committed Mar 24, 2024
1 parent c4b9636 commit f97c527
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Publish package

name: .NET
name: Deploy

on:
push:
Expand All @@ -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:
Expand All @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit f97c527

Please sign in to comment.