feat: 优化模型列表操作逻辑,新增滚动到顶部和底部的功能,改进模型切换时的界面滚动位置保持 #244
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 | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: read | |
| packages: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.x' | |
| - name: Configure NuGet authentication | |
| run: dotnet nuget update source Duckov-Custom-Model --username Duckov-Custom-Model --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| env: | |
| CI: true | |
| GITHUB_ACTIONS: true | |
| - name: Build | |
| run: dotnet build --configuration Release --no-restore | |
| env: | |
| CI: true | |
| GITHUB_ACTIONS: true | |
| - name: Test (if any) | |
| run: dotnet test --configuration Release --no-build --verbosity normal | |
| continue-on-error: true | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: DuckovCustomModel | |
| path: DuckovCustomModel/bin/Release/netstandard2.1 | |
| retention-days: 7 | |