From 4c90ebc27f64c477ce0f0970a3a6d283d077e725 Mon Sep 17 00:00:00 2001 From: GGG KILLER Date: Thu, 29 Oct 2020 14:37:30 -0300 Subject: [PATCH] Update .NET, don't build when testing and fix nuget pushing. --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd707f3..0bc041d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,17 +22,21 @@ jobs: - name: Setup .NET 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: '5.0.100-rc.1.20452.10' + dotnet-version: 5.0.100-rc.2.20479.15 - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --configuration Release --no-restore - name: Test - run: dotnet test --configuration Release --no-restore + run: dotnet test --configuration Release --no-build - name: Generate NuGet packages run: dotnet pack --configuration Release --output ./packages --no-restore --include-symbols -p:SymbolPackageFormat=snupkg - name: Publish packages - run: dotnet nuget push ./packages/ --source https://www.myget.org/F/ggg-killer/api/v3/index.json --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate + run: | + Get-ChildItem -Path ./packages/ -Filter *.nupkg -File -Name | ForEach-Object { + dotnet nuget push ./packages/$_ --source https://www.myget.org/F/ggg-killer/api/v3/index.json --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate + } + shell: pwsh - name: Create Release uses: actions/create-release@v1 env: @@ -53,7 +57,7 @@ jobs: - name: Setup .NET 5 uses: actions/setup-dotnet@v1 with: - dotnet-version: 5.0.100-rc.1.20452.10 + dotnet-version: 5.0.100-rc.2.20479.15 - name: Install dependencies run: dotnet restore - name: Build