This repository was archived by the owner on Sep 20, 2025. It is now read-only.
fix(providers): add providers #83
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: release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: | |
| contents: write | |
| issues: write | |
| id-token: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '3.1.x' | |
| - name: prepare csharp-dotnet-sdk | |
| run: | | |
| dotnet build --configuration Release | |
| dotnet test --configuration Release --no-restore | |
| dotnet pack --configuration Release --no-build --no-restore --output . | |
| - name: pause to avoid 2ndary rate limits # https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#about-secondary-rate-limits | |
| run: | | |
| sleep "$(echo $RANDOM % 60 + 1 | bc)" | |
| - uses: cycjimmy/[email protected] | |
| with: | |
| semantic_version: 18 | |
| extra_plugins: | | |
| @semantic-release/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish package distributions to NuGet | |
| run: | | |
| dotnet nuget push \ | |
| "$(ls -a AffixApi.Api.*.nupkg)" \ | |
| --source https://api.nuget.org/v3/index.json \ | |
| -k ${{ secrets.NUGET_API_KEY }} |