fix: Ignore OpenAPI errors #231
This file contains 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: Publish | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v** | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build | |
--configuration Release | |
--no-restore | |
- name: Test | |
run: dotnet test | |
--configuration Release | |
--logger GitHubActions | |
--no-build | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }} | |
DEEPINFRA_API_KEY: ${{ secrets.DEEPINFRA_API_KEY }} | |
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }} | |
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | |
TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }} | |
TOKEN_FOR_GITHUB_MODELS: ${{ secrets.TOKEN_FOR_GITHUB_MODELS }} | |
PERPLEXITY_API_KEY: ${{ secrets.PERPLEXITY_API_KEY }} | |
SAMBANOVA_API_KEY: ${{ secrets.SAMBANOVA_API_KEY }} | |
- name: Publish to NuGet | |
run: dotnet nuget push | |
**.nupkg | |
--skip-duplicate | |
--source https://api.nuget.org/v3/index.json | |
--api-key ${{ secrets.NUGET_KEY }} | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: [publish] | |
if: startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create release | |
run: gh release create ${{ github.ref_name }} | |
--title "${{ github.ref_name }}" | |
--generate-notes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |