feat: 将Polly替换为Microsoft.Extensions.Resilience,使用更优雅.同时修复消费消息太慢的问题. (… #123
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
env: | |
DOTNET_VERSION: "9.0.x" | |
TZ: Asia/Shanghai | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: NUGET_ENV | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .Net SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Build and Test | |
run: ./Build.ps1 | |
shell: pwsh | |
- name: Push to NuGet | |
env: | |
NUGET_URL: ${{ vars.NUGET_URL }} | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
run: ./Push.ps1 | |
shell: pwsh | |
# - name: Artifacts | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: artifacts | |
# path: artifacts/**/* |