Merge pull request #763 from betalgo/dev #100
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build And Deploy Betalgo.Ranul.OpenAI | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build-test: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build -c Release --no-restore | |
| - name: Test | |
| run: dotnet test -c Release --no-build --verbosity normal | |
| publish-sdk: | |
| needs: build-test | |
| permissions: | |
| contents: write | |
| packages: write | |
| 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: Restore SDK | |
| run: dotnet restore OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj | |
| - name: Build SDK (Release) | |
| run: dotnet build OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj -c Release --no-restore | |
| - name: Publish OpenAI | |
| uses: Betalgo/[email protected] | |
| with: | |
| project-file: OpenAI.SDK/Betalgo.Ranul.OpenAI.csproj | |
| nuget-api-key: ${{ secrets.NUGET_KEY }} | |
| clean: false | |
| tag-commit: true | |
| tag-format: Betalgo.Ranul.OpenAI-v* | |
| publish-contracts: | |
| needs: build-test | |
| permissions: | |
| contents: write | |
| packages: write | |
| 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: Publish Contracts | |
| uses: Betalgo/[email protected] | |
| with: | |
| project-file: Betalgo.Ranul.OpenAI.Contracts/Betalgo.Ranul.OpenAI.Contracts.csproj | |
| nuget-api-key: ${{ secrets.NUGET_KEY }} | |
| tag-commit: true | |
| tag-format: Betalgo.Ranul.OpenAI.Contracts-v* | |
| publish-utilities: | |
| needs: build-test | |
| permissions: | |
| contents: write | |
| packages: write | |
| 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: Publish OpenAI Utilities | |
| uses: Betalgo/[email protected] | |
| with: | |
| project-file: OpenAI.Utilities/Betalgo.OpenAI.Utilities.csproj | |
| nuget-api-key: ${{ secrets.NUGET_KEY_UTILITIES }} | |
| tag-commit: true | |
| tag-format: Betalgo.OpenAI.Utilities-v* |