diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index cc64f3b..7ee9e86 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -1,4 +1,4 @@ -name: .NET Core +name: CI on: push: @@ -11,15 +11,25 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Restore run: dotnet restore + - name: Build run: dotnet build --configuration Release --no-restore /property:ContinuousIntegrationBuild=True + # - name: Test # run: dotnet test --configuration Release --no-restore --no-build + - name: Pack - run: dotnet pack --configuration Release --no-restore --no-build + run: dotnet pack --configuration Release --no-restore --no-build -o artifacts + + - name: Publish + uses: actions/upload-artifact@v4 + with: + name: packages + path: 'artifacts/*.*nupkg' diff --git a/DeviceDetector.NET.CacheBuilder/DeviceDetector.NET.CacheBuilder.csproj b/DeviceDetector.NET.CacheBuilder/DeviceDetector.NET.CacheBuilder.csproj index 489a8da..ee8431a 100644 --- a/DeviceDetector.NET.CacheBuilder/DeviceDetector.NET.CacheBuilder.csproj +++ b/DeviceDetector.NET.CacheBuilder/DeviceDetector.NET.CacheBuilder.csproj @@ -3,6 +3,7 @@ Exe net8.0 + false diff --git a/DeviceDetector.NET.RegexEngine.PCRE/DeviceDetector.NET.RegexEngine.PCRE.csproj b/DeviceDetector.NET.RegexEngine.PCRE/DeviceDetector.NET.RegexEngine.PCRE.csproj index 41dbb56..13613b7 100644 --- a/DeviceDetector.NET.RegexEngine.PCRE/DeviceDetector.NET.RegexEngine.PCRE.csproj +++ b/DeviceDetector.NET.RegexEngine.PCRE/DeviceDetector.NET.RegexEngine.PCRE.csproj @@ -1,8 +1,9 @@  - net7.0;net8.0 + net8.0 DeviceDetectorNET.RegexEngine.PCRE + false diff --git a/DeviceDetector.NET.Tests/DeviceDetector.NET.Tests.csproj b/DeviceDetector.NET.Tests/DeviceDetector.NET.Tests.csproj index 57395c7..b0289c1 100644 --- a/DeviceDetector.NET.Tests/DeviceDetector.NET.Tests.csproj +++ b/DeviceDetector.NET.Tests/DeviceDetector.NET.Tests.csproj @@ -2,9 +2,7 @@ net8.0 - false - DeviceDetectorNET.Tests diff --git a/DeviceDetector.NET.Web/DeviceDetector.NET.Web.csproj b/DeviceDetector.NET.Web/DeviceDetector.NET.Web.csproj index c9dcee1..2c62421 100644 --- a/DeviceDetector.NET.Web/DeviceDetector.NET.Web.csproj +++ b/DeviceDetector.NET.Web/DeviceDetector.NET.Web.csproj @@ -5,6 +5,7 @@ enable enable DeviceDetectorNET.Web + false diff --git a/DeviceDetector.NET.sln b/DeviceDetector.NET.sln index 80dd122..e2d9a19 100644 --- a/DeviceDetector.NET.sln +++ b/DeviceDetector.NET.sln @@ -17,7 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeviceDetector.NET.RegexEngine.PCRE", "DeviceDetector.NET.RegexEngine.PCRE\DeviceDetector.NET.RegexEngine.PCRE.csproj", "{94B4F635-61AC-40E4-87CC-DDA4217A0999}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeviceDetector.NET.CacheBuilder", "DeviceDetector.Net.CacheBuilder\DeviceDetector.NET.CacheBuilder.csproj", "{E4DA874C-7C29-4D34-9C0E-103073AEE043}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeviceDetector.NET.CacheBuilder", "DeviceDetector.NET.CacheBuilder\DeviceDetector.NET.CacheBuilder.csproj", "{E4DA874C-7C29-4D34-9C0E-103073AEE043}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeviceDetector.NET.Web", "DeviceDetector.NET.Web\DeviceDetector.NET.Web.csproj", "{04D3C595-50EF-4E7B-8DF6-D5F997F4446D}" EndProject diff --git a/DeviceDetector.NET/DeviceDetector.NET.csproj b/DeviceDetector.NET/DeviceDetector.NET.csproj index 8a96dce..5c2b38a 100644 --- a/DeviceDetector.NET/DeviceDetector.NET.csproj +++ b/DeviceDetector.NET/DeviceDetector.NET.csproj @@ -10,7 +10,6 @@ The Universal Device Detection library for .NET that parses User Agents and detects devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, feed readers, media players, PIMs, ...), operating systems, brands and models. This is a port of the popular PHP device-detector library to C#. For the most part you can just follow the documentation for device-detector with no issue. parse detection-library user-agent bot-detection mobile-detection desktop tablet mobile tv cars console standard https://github.com/totpero/DeviceDetector.NET - true 6.3.3.0 https://github.com/totpero/DeviceDetector.NET false @@ -24,6 +23,12 @@ logo.jpg git + + true + true + portable + snupkg +