Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed May 7, 2024
1 parent 09e3444 commit d20b66f
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 14 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: Build
on:
release:
types: [ created ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.x"
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}
- name: Build
run: dotnet build --configuration Release
- name: Package
run: dotnet pack --configuration Release
- name: Publish
run: dotnet nuget push src/Dofusdude.Api/bin/Release/Dofusdude.Api.0.9.0.nupkg
10 changes: 5 additions & 5 deletions Dofusdude.Api.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dofusdude.Api", "src\Dofusdude.Api\Dofusdude.Api.csproj", "{5A38C848-7067-485D-AD1C-C3FC4EC5C7AD}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dofusdude.Api", "src\Dofusdude.Api\Dofusdude.Api.csproj", "{0879E2F5-9F5F-484F-AD45-4227182CF400}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dofusdude.Api.Test", "src\Dofusdude.Api.Test\Dofusdude.Api.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5A38C848-7067-485D-AD1C-C3FC4EC5C7AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5A38C848-7067-485D-AD1C-C3FC4EC5C7AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5A38C848-7067-485D-AD1C-C3FC4EC5C7AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5A38C848-7067-485D-AD1C-C3FC4EC5C7AD}.Release|Any CPU.Build.0 = Release|Any CPU
{0879E2F5-9F5F-484F-AD45-4227182CF400}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0879E2F5-9F5F-484F-AD45-4227182CF400}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0879E2F5-9F5F-484F-AD45-4227182CF400}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0879E2F5-9F5F-484F-AD45-4227182CF400}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Your favorite language is missing? Please let me know!
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.9.0
- SDK version: packageVersion=0.9.0
- SDK version: 0.9.0
- Generator version: 7.6.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.CSharpClientCodegen
For more information, please visit [https://discord.gg/3EtHskZD8h](https://discord.gg/3EtHskZD8h)
Expand Down
6 changes: 3 additions & 3 deletions src/Dofusdude.Api/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "packageVersion&#x3D;0.9.0";
public const string Version = "0.9.0";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -118,7 +118,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/packageVersion&#x3D;0.9.0/csharp");
UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/0.9.0/csharp");
BasePath = "https://api.dofusdu.de";
DefaultHeaders = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -541,7 +541,7 @@ public static string ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 0.9.0\n";
report += " SDK Package Version: packageVersion=0.9.0\n";
report += " SDK Package Version: 0.9.0\n";

return report;
}
Expand Down
10 changes: 5 additions & 5 deletions src/Dofusdude.Api/Dofusdude.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<AssemblyName>Dofusdude.Api</AssemblyName>
<PackageId>Dofusdude.Api</PackageId>
<OutputType>Library</OutputType>
<Authors>OpenAPI</Authors>
<Authors>stelzo</Authors>
<Company>OpenAPI</Company>
<AssemblyTitle>OpenAPI Library</AssemblyTitle>
<Description>A library generated from a OpenAPI doc</Description>
<AssemblyTitle>Dofusdude API</AssemblyTitle>
<Description>A project for you - the developer.</Description>
<Copyright>No Copyright</Copyright>
<RootNamespace>Dofusdude.Api</RootNamespace>
<Version>packageVersion&#x3D;0.9.0</Version>
<Version>0.9.0</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Dofusdude.Api.xml</DocumentationFile>
<RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl>
<RepositoryUrl>https://github.com/dofusdude/dofusdude-csharp.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageReleaseNotes>Minor update</PackageReleaseNotes>
<Nullable>annotations</Nullable>
Expand Down

0 comments on commit d20b66f

Please sign in to comment.