Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 15 additions & 3 deletions .github/workflows/nuget_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@ jobs:
source-url: https://nuget.pkg.github.com/BezaluLLC/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: dotnet build --configuration Release NinjaOne.Client
- name: Install Kiota CLI
run: dotnet tool install --global Microsoft.OpenApi.Kiota
- name: Generate SDK
run: |
kiota generate \
--language CSharp \
--openapi https://app.ninjarmm.com/apidocs/NinjaRMM-API-v2.json \
--class-name NinjaOneClient \
--namespace-name NinjaOne.Client \
--output ./Sdk \
--clean-output \
--ll warning
- run: dotnet build --configuration Release
- name: Create the package
run: dotnet pack --configuration Release NinjaOne.Client
run: dotnet pack --configuration Release
- name: Publish the package to GPR
run: dotnet nuget push CredentialManagerLib/bin/Release/*.nupkg --skip-duplicate
run: dotnet nuget push bin/Release/*.nupkg --skip-duplicate
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# Kiota-generated Client
[Ss][Dd][Kk]/

# User-specific files
*.rsuser
*.suo
Expand Down
135 changes: 0 additions & 135 deletions Models/BodyPart.cs

This file was deleted.

101 changes: 0 additions & 101 deletions Models/BodyPart_contentDisposition.cs

This file was deleted.

55 changes: 0 additions & 55 deletions Models/BodyPart_contentDisposition_parameters.cs

This file was deleted.

55 changes: 0 additions & 55 deletions Models/BodyPart_entity.cs

This file was deleted.

Loading