2626 - name : Test
2727 run : dotnet test -c Release --no-build --verbosity normal
2828
29- build-artifacts :
30- needs : build-test
31- runs-on : ubuntu-latest
32-
33- steps :
34- - uses : actions/checkout@v4
35- with :
36- fetch-depth : 0
37- - name : Setup .NET
38- uses : actions/setup-dotnet@v4
39- with :
40- dotnet-version : 9.0.x
41- - name : Build (Release, Utilities -> SDK -> Contracts)
42- run : dotnet build OpenAI.Utilities/Betalgo.OpenAI.Utilities.csproj -c Release
43- - name : Upload release bins
44- uses : actions/upload-artifact@v4
45- with :
46- name : release-bins
47- path : |
48- OpenAI.Utilities/bin/Release/
49- OpenAI.SDK/bin/Release/
50- Betalgo.Ranul.OpenAI.Contracts/bin/Release/
51-
5229 publish-sdk :
53- needs : build-artifacts
30+ needs : build-test
5431 permissions :
5532 contents : write
5633 packages : write
@@ -59,14 +36,14 @@ jobs:
5936 - uses : actions/checkout@v4
6037 with :
6138 fetch-depth : 0
62- - name : Download artifacts
63- uses : actions/download-artifact@v4
64- with :
65- name : release-bins
6639 - name : Setup .NET
6740 uses : actions/setup-dotnet@v4
6841 with :
6942 dotnet-version : 9.0.x
43+ - name : Restore SDK
44+ run : dotnet restore OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj
45+ - name : Build SDK (Release)
46+ run : dotnet build OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj -c Release --no-restore
7047 - name : Publish OpenAI
71487249 with :
7754 tag-format : Betalgo.Ranul.OpenAI-v*
7855
7956 publish-contracts :
80- needs : build-artifacts
57+ needs : build-test
8158 permissions :
8259 contents : write
8360 packages : write
8663 - uses : actions/checkout@v4
8764 with :
8865 fetch-depth : 0
89- - name : Download artifacts
90- uses : actions/download-artifact@v4
91- with :
92- name : release-bins
9366 - name : Setup .NET
9467 uses : actions/setup-dotnet@v4
9568 with :
@@ -99,12 +72,11 @@ jobs:
9972 with :
10073 project-file : Betalgo.Ranul.OpenAI.Contracts/Betalgo.Ranul.OpenAI.Contracts.csproj
10174 nuget-api-key : ${{ secrets.NUGET_KEY }}
102- clean : false
10375 tag-commit : true
10476 tag-format : Betalgo.Ranul.OpenAI.Contracts-v*
10577
10678 publish-utilities :
107- needs : build-artifacts
79+ needs : build-test
10880 permissions :
10981 contents : write
11082 packages : write
@@ -113,19 +85,15 @@ jobs:
11385 - uses : actions/checkout@v4
11486 with :
11587 fetch-depth : 0
116- - name : Download artifacts
117- uses : actions/download-artifact@v4
118- with :
119- name : release-bins
12088 - name : Setup .NET
12189 uses : actions/setup-dotnet@v4
12290 with :
12391 dotnet-version : 9.0.x
92+
12493 - name : Publish OpenAI Utilities
1259412695 with :
12796 project-file : OpenAI.Utilities/Betalgo.OpenAI.Utilities.csproj
12897 nuget-api-key : ${{ secrets.NUGET_KEY_UTILITIES }}
129- clean : false
13098 tag-commit : true
13199 tag-format : Betalgo.OpenAI.Utilities-v*
0 commit comments