Skip to content
Merged

Dev #761

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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 66 additions & 10 deletions .github/workflows/BuildAndDeployBetalgoOpenAI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,53 +26,109 @@ jobs:
- name: Test
run: dotnet test -c Release --no-build --verbosity normal

publish:
build-artifacts:
needs: build-test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build (Release, Utilities -> SDK -> Contracts)
run: dotnet build OpenAI.Utilities/Betalgo.OpenAI.Utilities.csproj -c Release
- name: Upload release bins
uses: actions/upload-artifact@v4
with:
name: release-bins
path: |
OpenAI.Utilities/bin/Release/
OpenAI.SDK/bin/Release/
Betalgo.Ranul.OpenAI.Contracts/bin/Release/

publish-sdk:
needs: build-artifacts
permissions:
contents: write
packages: write

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: release-bins
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x

- name: Restore (publish)
run: dotnet restore OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj

- name: Build (publish, Release)
run: dotnet build OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj -c Release --no-restore

- name: Publish OpenAI
uses: Betalgo/NugetPublisher@v1.3.0
with:
project-file: OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj
nuget-api-key: ${{ secrets.NUGET_KEY }}
clean: false
no-restore: true
tag-commit: true
tag-format: Betalgo.Ranul.OpenAI-v*

publish-contracts:
needs: build-artifacts
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: release-bins
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Publish Contracts
uses: Betalgo/NugetPublisher@v1.3.0
with:
project-file: Betalgo.Ranul.OpenAI.Contracts/Betalgo.Ranul.OpenAI.Contracts.csproj
nuget-api-key: ${{ secrets.NUGET_KEY }}
clean: false
no-restore: true
tag-commit: true
tag-format: Betalgo.Ranul.OpenAI.Contracts-v*

publish-utilities:
needs: build-artifacts
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: release-bins
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Publish OpenAI Utilities
uses: Betalgo/NugetPublisher@v1.3.0
with:
project-file: OpenAI.Utilities/Betalgo.OpenAI.Utilities.csproj
nuget-api-key: ${{ secrets.NUGET_KEY_UTILITIES }}
clean: false
no-restore: true
tag-commit: true
tag-format: Betalgo.OpenAI.Utilities-v*
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Description>Contracts and shared types for the Betalgo OpenAI .NET SDK.</Description>
<Authors>Tolga Kayhan, Betalgo</Authors>
<Company>Betalgo Up Ltd.</Company>
<Version>9.2.4</Version>
<Version>9.2.5</Version>
<PackageProjectUrl>https://openai.com/</PackageProjectUrl>
<PackageIcon>Betalgo-Ranul-OpenAI-icon.png</PackageIcon>
<PackageReadmeFile>Readme.md</PackageReadmeFile>
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageIcon>Betalgo-Ranul-OpenAI-icon.png</PackageIcon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Title>OpenAI SDK by Betalgo</Title>
<Version>9.2.4</Version>
<Version>9.2.5</Version>
<Authors>Tolga Kayhan, Betalgo</Authors>
<Company>Betalgo Up Ltd.</Company>
<Product>OpenAI .NET library by Betalgo Ranul</Product>
Expand Down
2 changes: 1 addition & 1 deletion OpenAI.Utilities/Betalgo.OpenAI.Utilities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageProjectUrl>https://openai.com/</PackageProjectUrl>
<PackageIcon>OpenAI-Betalgo.png</PackageIcon>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>9.2.4</Version>
<Version>9.2.5</Version>
<Authors>Tolga Kayhan, Betalgo</Authors>
<Company>Betalgo Up Ltd.</Company>
<Product>Utility tools for Betalgo.OpenAI</Product>
Expand Down
Loading