fix build

This commit is contained in:
zznty
2023-12-05 14:01:45 +03:00
parent 6070bddd7d
commit 534fdd0e49

View File

@@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-dotnet@v3 - uses: actions/setup-dotnet@v3
name: Setup dotnet name: Setup dotnet
with: with:
dotnet-version: '7.0.x' dotnet-version: '8.0.x'
- name: Add Packages Nuget Source - name: Add Packages Nuget Source
run: dotnet nuget add source "https://nuget.storage.yandexcloud.net/index.json" --name yandex-cloud run: dotnet nuget add source "https://nuget.storage.yandexcloud.net/index.json" --name yandex-cloud
@@ -36,7 +36,7 @@ jobs:
- name: Build - name: Build
run: dotnet build Torch.Server/Torch.Server.csproj --no-restore -c ${{ env.BUILD_CONFIGURATION }} -p:Version="${{ steps.version.outputs.version }}" -p:AssemblyVersion="${{ steps.version.outputs.version }}" run: dotnet build Torch.Server/Torch.Server.csproj --no-restore -c ${{ env.BUILD_CONFIGURATION }} -p:Version="${{ steps.version.outputs.version }}" -p:AssemblyVersion="${{ steps.version.outputs.version }}"
- name: Publish - name: Publish
run: dotnet publish Torch.Server/Torch.Server.csproj --no-build -r win-x64 --sc -c ${{ env.BUILD_CONFIGURATION }} -o ./publish run: dotnet publish Torch.Server/Torch.Server.csproj --no-build --sc -c ${{ env.BUILD_CONFIGURATION }} -o ./publish
- uses: vimtor/action-zip@v1 - uses: vimtor/action-zip@v1
name: Zip Release name: Zip Release