Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
dotnet-version: |
8.0.x
10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish FolderProfilePortable
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net8.0 -p:PublishProfile=FolderProfilePortable
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net10.0 -p:PublishProfile=FolderProfilePortable
- name: Publish FolderProfileWindows
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net8.0 -p:PublishProfile=FolderProfileWindows
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net10.0 -p:PublishProfile=FolderProfileWindows
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release
- name: Publish Unit Test Results
Expand All @@ -45,20 +47,22 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
dotnet-version: |
8.0.x
10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish FolderProfilePortable
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net8.0 -p:PublishProfile=FolderProfilePortable
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net10.0 -p:PublishProfile=FolderProfilePortable
- name: Publish FolderProfileWindows
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net8.0 -p:PublishProfile=FolderProfileWindows
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net10.0 -p:PublishProfile=FolderProfileWindows
- name: Zip FolderProfilePortable
uses: thedoctor0/zip-release@main
with:
type: 'zip'
directory: ./Codeuctivity.HtmlRendererCli/bin/Release/net8.0/publish/FolderProfilePortable
directory: ./Codeuctivity.HtmlRendererCli/bin/Release/net10.0/publish/FolderProfilePortable
filename: 'Codeuctivity.HtmlRendererCli.Portable.zip'
- name: NugetPush
env:
Expand All @@ -72,7 +76,7 @@ jobs:
GITHUB_TOKEN: ${{ github.TOKEN }}
if: env.GITHUB_TOKEN != ''
run: |
gh release create ${{env.CURRENT_VERSION}} ./Codeuctivity.HtmlRenderer/bin/Release/*.*nupkg ./Codeuctivity.HtmlRendererCli/bin/Release/net8.0/publish/FolderProfilePortable/Codeuctivity.HtmlRendererCli.Portable.zip ./Codeuctivity.HtmlRendererCli/bin/Release/net8.0/publish/FolderProfileWindows/Codeuctivity.HtmlRendererCli.exe --generate-notes
gh release create ${{env.CURRENT_VERSION}} ./Codeuctivity.HtmlRenderer/bin/Release/*.*nupkg ./Codeuctivity.HtmlRendererCli/bin/Release/net10.0/publish/FolderProfilePortable/Codeuctivity.HtmlRendererCli.Portable.zip ./Codeuctivity.HtmlRendererCli/bin/Release/net10.0/publish/FolderProfileWindows/Codeuctivity.HtmlRendererCli.exe --generate-notes

deployTest:
if: github.ref == 'refs/heads/main'
Expand All @@ -83,20 +87,22 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.0.x
dotnet-version: |
8.0.x
10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish FolderProfilePortable
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net8.0 -p:PublishProfile=FolderProfilePortable
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net10.0 -p:PublishProfile=FolderProfilePortable
- name: Publish FolderProfileWindows
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net8.0 -p:PublishProfile=FolderProfileWindows
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -f net10.0 -p:PublishProfile=FolderProfileWindows
- name: Zip FolderProfilePortable
uses: thedoctor0/zip-release@main
with:
type: 'zip'
directory: ./Codeuctivity.HtmlRendererCli/bin/Release/net8.0/publish/FolderProfilePortable
directory: ./Codeuctivity.HtmlRendererCli/bin/Release/net10.0/publish/FolderProfilePortable
filename: 'Codeuctivity.HtmlRendererCli.Portable.zip'
- name: NugetPush
env:
Expand All @@ -112,4 +118,4 @@ jobs:
GITHUB_TOKEN: ${{ github.TOKEN }}
if: env.GITHUB_TOKEN != ''
run: |
gh release create ${{env.CURRENT_VERSION}} ./Codeuctivity.HtmlRenderer/bin/Release/*.*nupkg ./Codeuctivity.HtmlRendererCli/bin/Release/net8.0/publish/FolderProfilePortable/Codeuctivity.HtmlRendererCli.Portable.zip ./Codeuctivity.HtmlRendererCli/bin/Release/net8.0/publish/FolderProfileWindows/Codeuctivity.HtmlRendererCli.exe --prerelease --generate-notes
gh release create ${{env.CURRENT_VERSION}} ./Codeuctivity.HtmlRenderer/bin/Release/*.*nupkg ./Codeuctivity.HtmlRendererCli/bin/Release/net10.0/publish/FolderProfilePortable/Codeuctivity.HtmlRendererCli.Portable.zip ./Codeuctivity.HtmlRendererCli/bin/Release/net10.0/publish/FolderProfileWindows/Codeuctivity.HtmlRendererCli.exe --prerelease --generate-notes
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<RepositoryUrl>https://github.com/Codeuctivity/PuppeteerSharp.Renderer</RepositoryUrl>
<PackageTags>HtmlToPdf HtmlToPng HTML render convert PDF PNG PuppeteerSharp HTML2PDF HTML2PNG linux windows</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<AnalysisLevel>latest</AnalysisLevel>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand Down
Loading