修正了swgger生成的类型名,SimApiAuth 如果不加参数,则默认接受所有登录了的用户请求. #98
Workflow file for this run
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: PublishNugetPackage | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| jobs: | |
| publish: | |
| name: Publish Project to Nuget | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET Core | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: "10.x.x" | |
| - name: Publish | |
| run: | | |
| version=`git describe --tags` | |
| dotnet build --configuration release -p:Version=$version | |
| dotnet nuget push bin/release/Simcu.SimApi.$version.nupkg -k ${NUGET_APIKEY} -s https://www.nuget.org/api/v2/package | |
| env: | |
| NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }} |