diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index b6dc4a3..ae0c522 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -14,10 +14,14 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Download release assets + env: + GH_TOKEN: ${{ github.token }} + run: | + gh release download "${{ github.event.release.tag_name }}" \ + --pattern "*.nupkg" \ + --dir ./artifacts \ + --repo "${{ github.repository }}" - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -27,18 +31,6 @@ jobs: 9.0.x 10.0.x - - name: Restore dependencies - run: dotnet restore - - - name: Build - run: dotnet build --configuration Release --no-restore - - - name: Test - run: dotnet test --configuration Release --no-build --verbosity normal - - - name: Pack NuGet packages - run: dotnet pack --configuration Release --no-build --output ./artifacts - - name: Verify packages run: | echo "Packages to be published:" diff --git a/Directory.Build.props b/Directory.Build.props index 5df9af5..3705a16 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,8 @@ MyCSharp.HttpUserAgentParser MyCSharp, BenjaminAbt, gfoidl - MyCSharp.de + myCSharp.de + myCSharp.de @@ -73,6 +74,21 @@ low + + + true + lcov,opencover,cobertura + $(MSBuildThisFileDirectory)TestResults/coverage/$(MSBuildProjectName). + GeneratedCodeAttribute,CompilerGeneratedAttribute,ExcludeFromCodeCoverageAttribute + **/*Program.cs;**/*Startup.cs;**/*GlobalUsings.cs + true + + + 96 + line + total + + diff --git a/README.md b/README.md index 18d3f13..10f827b 100644 --- a/README.md +++ b/README.md @@ -415,7 +415,7 @@ by [@BenjaminAbt](https://github.com/BenjaminAbt) and [@gfoidl](https://github.c MIT License -Copyright (c) 2021-2025 MyCSharp +Copyright (c) 2021-2026 myCSharp.de Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/HttpUserAgentParser/HttpUserAgentParser.csproj b/src/HttpUserAgentParser/HttpUserAgentParser.csproj index b007a8d..0a2f2df 100644 --- a/src/HttpUserAgentParser/HttpUserAgentParser.csproj +++ b/src/HttpUserAgentParser/HttpUserAgentParser.csproj @@ -21,7 +21,7 @@ - +