From f77637a9400a191e4d900d570c34a222f0273285 Mon Sep 17 00:00:00 2001 From: Alexey Zimarev Date: Thu, 15 Jul 2021 14:20:18 +0200 Subject: [PATCH] Unshallow, wrong version gets published --- .github/workflows/build-dev.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-dev.yml b/.github/workflows/build-dev.yml index 8e148f41b..aaca1649f 100644 --- a/.github/workflows/build-dev.yml +++ b/.github/workflows/build-dev.yml @@ -14,21 +14,23 @@ on: jobs: test-win: runs-on: windows-latest - + steps: - - uses: actions/checkout@v2.3.4 + - name: Checkout + uses: actions/checkout@v2.3.4 + - name: Unshallow + run: git fetch --prune --unshallow + - name: Run tests on Windows for all targets + run: dotnet test -c Release - - name: Run tests on Windows for all targets - run: dotnet test -c Release - nuget: runs-on: windows-latest - needs: [test-win] #,test-netcore-linux] + needs: [ test-win ] #,test-netcore-linux] steps: - - uses: actions/checkout@v2.3.4 + - uses: actions/checkout@v2.3.4 - - name: Create and push NuGet package - run: | - dotnet pack -c Release -o nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg - dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file + - name: Create and push NuGet package + run: | + dotnet pack -c Release -o nuget -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg + dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file