diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1893457..9188fbd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,86 +1,76 @@ -name: CI - -on: - push: - branches: - - develop - - master - - pull_request: - types: [opened, synchronize, reopened] - branches: - - develop - - master - -jobs: - build: - name: Build - runs-on: windows-2022 - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '5.0.x' - - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '7.0.100' - - - name: Setup GitVersion - uses: gittools/actions/gitversion/setup@v0.9.9 - with: - versionSpec: '5.6.x' - - - name: GitVersion - id: gitversion - uses: gittools/actions/gitversion/execute@v0.9.9 - with: - useConfigFile: true - configFilePath: gitversion.yml - - - name: Build - CI - run: | - $adjustedPackageVersion="${{ steps.gitversion.outputs.semVer }}".ToLower(); - dotnet build src/NvGet.sln /p:PackageVersion=$adjustedPackageVersion /p:Version=${{ steps.gitversion.outputs.assemblySemVer }} "/p:PackageOutputPath=$env:GITHUB_WORKSPACE\artifacts" /p:GeneratePackageOnBuild=true - - - name: Run Unit Tests - run: | - cd src - dotnet test - - - name: Upload Artifacts - uses: actions/upload-artifact@v2 - with: - name: NuGet - path: .\artifacts - - publish: - name: Publish - if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/master')) }} - runs-on: windows-latest - needs: - - build - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Download Artifacts - uses: actions/download-artifact@v2 - with: - name: NuGet - path: artifacts - - - name: Setup .NET SDK - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '3.1.x' - - - name: NuGet Push - run: | - dotnet nuget push artifacts\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_API_KEY }} +name: CI + +on: + push: + branches: + - develop + - master + + pull_request: + types: [opened, synchronize, reopened] + branches: + - develop + - master + +jobs: + build: + name: Build + runs-on: windows-2022 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "9.0.101" + + - name: GitVersion + id: gitversion + uses: gittools/actions/gitversion/execute@v0.9.9 + with: + useConfigFile: true + configFilePath: gitversion.yml + + - name: Build - CI + run: | + $adjustedPackageVersion="${{ steps.gitversion.outputs.semVer }}".ToLower(); + dotnet build src/NvGet.sln /p:PackageVersion=$adjustedPackageVersion /p:Version=${{ steps.gitversion.outputs.assemblySemVer }} "/p:PackageOutputPath=$env:GITHUB_WORKSPACE\artifacts" /p:GeneratePackageOnBuild=true + + - name: Run Unit Tests + run: | + cd src + dotnet test + + - name: Upload Artifacts + uses: actions/upload-artifact@v2 + with: + name: NuGet + path: .\artifacts + + publish: + name: Publish + if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/master')) }} + runs-on: windows-latest + needs: + - build + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Download Artifacts + uses: actions/download-artifact@v4.1.7 + with: + name: NuGet + path: artifacts + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: "9.0.x" + + - name: NuGet Push + run: | + dotnet nuget push artifacts\*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_API_KEY }} diff --git a/src/NvGet.Tests/NvGet.Tests.csproj b/src/NvGet.Tests/NvGet.Tests.csproj index 027a0ae..5b91506 100644 --- a/src/NvGet.Tests/NvGet.Tests.csproj +++ b/src/NvGet.Tests/NvGet.Tests.csproj @@ -1,27 +1,27 @@ - - - - net5.0 - false - - - - - - - - - - - - - - - - PreserveNewest - - - - - - + + + + net9.0 + false + + + + + + + + + + + + + + + + PreserveNewest + + + + + + diff --git a/src/NvGet.Tools.Downloader/NvGet.Tools.Downloader.csproj b/src/NvGet.Tools.Downloader/NvGet.Tools.Downloader.csproj index 48de97b..52f4e3a 100644 --- a/src/NvGet.Tools.Downloader/NvGet.Tools.Downloader.csproj +++ b/src/NvGet.Tools.Downloader/NvGet.Tools.Downloader.csproj @@ -1,38 +1,38 @@ - - - - Exe - net5.0 - true - true - nugetdownloader - latest - $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage - - - - - nventive.NuGet.Downloader.Tool - nventive - nventive + + + + Exe + net9.0 + true + true + nugetdownloader + latest + $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage + + + + + nventive.NuGet.Downloader.Tool + nventive + nventive Nuget Downloader allows to download the NuGet packages found in a solution - Apache-2.0 - icon.png - https://github.com/nventive/NuGet.Updater - - - - - True - - - - - - - - - - - - + Apache-2.0 + icon.png + https://github.com/nventive/NuGet.Updater + + + + + True + + + + + + + + + + + + diff --git a/src/NvGet.Tools.Hierarchy/NvGet.Tools.Hierarchy.csproj b/src/NvGet.Tools.Hierarchy/NvGet.Tools.Hierarchy.csproj index 79f708d..5909e75 100644 --- a/src/NvGet.Tools.Hierarchy/NvGet.Tools.Hierarchy.csproj +++ b/src/NvGet.Tools.Hierarchy/NvGet.Tools.Hierarchy.csproj @@ -1,39 +1,39 @@ - - - - Exe - net5.0 - true - true - nugethierarchy - latest - $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage - - - - - nventive.NuGet.Hierarchy.Tool - NuGet Hierarchy Tool - NuGet Hierarchy allows you to view the dependency tree of a solution - nventive - nventive - Apache-2.0 - icon.png - https://github.com/nventive/NuGet.Updater - - - - - True - - - - - - - - - - - - + + + + Exe + net9.0 + true + true + nugethierarchy + latest + $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage + + + + + nventive.NuGet.Hierarchy.Tool + NuGet Hierarchy Tool + NuGet Hierarchy allows you to view the dependency tree of a solution + nventive + nventive + Apache-2.0 + icon.png + https://github.com/nventive/NuGet.Updater + + + + + True + + + + + + + + + + + + diff --git a/src/NvGet.Tools.Updater/NvGet.Tools.Updater.csproj b/src/NvGet.Tools.Updater/NvGet.Tools.Updater.csproj index 88c1c99..41ebe33 100644 --- a/src/NvGet.Tools.Updater/NvGet.Tools.Updater.csproj +++ b/src/NvGet.Tools.Updater/NvGet.Tools.Updater.csproj @@ -1,49 +1,49 @@ - - - - Exe - net5.0;net6.0;net7.0 - true - true - nugetupdater - latest - $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage - major - - - - - nventive.NuGet.Updater.Tool - NuGet Updater Tool - A netcore version of the NuGet updater - nventive - nventive - Apache-2.0 - icon.png - https://github.com/nventive/NuGet.Updater - - - - - True - - - - - - - <_Parameter1>NvGet.Tests - - - - - - - - - - - - - - + + + + Exe + net9.0 + true + true + nugetupdater + latest + $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage + major + + + + + nventive.NuGet.Updater.Tool + NuGet Updater Tool + A netcore version of the NuGet updater + nventive + nventive + Apache-2.0 + icon.png + https://github.com/nventive/NuGet.Updater + + + + + True + + + + + + + <_Parameter1>NvGet.Tests + + + + + + + + + + + + + + diff --git a/src/NvGet/NvGet.csproj b/src/NvGet/NvGet.csproj index 1061715..995de9c 100644 --- a/src/NvGet/NvGet.csproj +++ b/src/NvGet/NvGet.csproj @@ -1,33 +1,33 @@ - - - netstandard20;net472 - $(NoWarn);CA1068;NU1701 - true - 9.0 - - - - - nventive.NuGet.Updater - nventive - nventive - Nuget Updater allows to automatically update the NuGet packages in a solution at build time - Apache-2.0 - icon.png - https://github.com/nventive/NuGet.Updater - - - - - - - - - - - - True - - - - + + + netstandard20;net472 + $(NoWarn);CA1068;NU1701 + true + 9.0 + + + + + nventive.NuGet.Updater + nventive + nventive + Nuget Updater allows to automatically update the NuGet packages in a solution at build time + Apache-2.0 + icon.png + https://github.com/nventive/NuGet.Updater + + + + + + + + + + + + True + + + +