From d524651da9c5d6236afba0460e059b5ddc5a6aeb Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Sun, 6 Nov 2022 21:07:18 +0600 Subject: [PATCH] im a true retard --- .github/workflows/release.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 08f323d..bff397a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,13 +31,8 @@ jobs: run: dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github - name: Restore dependencies run: dotnet restore Torch.Server/Torch.Server.csproj --use-lock-file - - uses: bhowell2/github-substring-action@v1.0.0 - id: normalize_version - with: - value: ${{ env.TORCH_VERSION }} - index_of_str: "v" - name: Build - run: dotnet build Torch.Server/Torch.Server.csproj --no-restore -c ${{ env.BUILD_CONFIGURATION }} /p:AssemblyVersion=${{ steps.normalize_version.outputs.substring }} /p:Version=${{ steps.normalize_version.outputs.substring }} + run: dotnet build Torch.Server/Torch.Server.csproj --no-restore -c ${{ env.BUILD_CONFIGURATION }} /p:AssemblyVersion=${{ env.TORCH_VERSION }} /p:Version=${{ env.TORCH_VERSION }} - name: Publish run: dotnet publish Torch.Server/Torch.Server.csproj --no-build -r win-x64 --sc -c ${{ env.BUILD_CONFIGURATION }} -o ./publish - uses: vimtor/action-zip@v1