Skip to content

Commit d866a16

Browse files
committed
Adding portable publish target (=framework dependent) version of Codeuctivity.HtmlRendererCli
1 parent e4f3471 commit d866a16

16 files changed

+278
-34
lines changed

.github/CODEOWNERS

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# More details are here: https://help.github.com/articles/about-codeowners/
5+
6+
# The '*' pattern is global owners.
7+
8+
# Order is important. The last matching pattern has the most precedence.
9+
# The folders are ordered as follows:
10+
11+
# In each subsection folders are ordered first by depth, then alphabetically.
12+
# This should make it easy to add new rules without breaking existing ones.
13+
14+
# Global rule:
15+
* @stesee

.github/dependabot.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
version: 2
22
updates:
3+
- package-ecosystem: "docker"
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
rebase-strategy: auto
8+
39
- package-ecosystem: "github-actions"
410
directory: "/"
511
schedule:
612
interval: weekly
713
rebase-strategy: auto
814

9-
- package-ecosystem: "nuget" # See documentation for possible values
10-
directory: "/" # Location of package manifests
15+
- package-ecosystem: "npm"
16+
directory: "/"
17+
schedule:
18+
interval: weekly
19+
rebase-strategy: auto
20+
21+
- package-ecosystem: "nuget"
22+
directory: "/"
1123
schedule:
1224
interval: "daily"
1325
ignore:
1426
- dependency-name: "nunit"
27+
- dependency-name: "coverlet.collector"
1528
- dependency-name: "SonarAnalyzer.CSharp"
1629
- dependency-name: "AngleSharp"
1730
- dependency-name: "Microsoft.NET.Test.Sdk"
@@ -24,3 +37,5 @@ updates:
2437
- dependency-name: "Codeuctivity.ImageSharpCompare"
2538
- dependency-name: "Codeuctivity.PdfjsSharp"
2639
- dependency-name: "Microsoft.SourceLink.GitHub"
40+
- dependency-name: "Microsoft.AspNetCore.Identity.UI"
41+
- dependency-name: "Microsoft.VisualStudio.Web.CodeGeneration.Design"

.github/workflows/cla.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "CLA Assistant"
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
types: [opened,closed,synchronize]
7+
8+
jobs:
9+
CLAssistant:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: "CLA Assistant"
13+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
14+
# Beta Release
15+
uses: cla-assistant/github-action@v2.2.1
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
# the below token should have repo scope and must be manually added by you in the repository's secret
19+
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
20+
with:
21+
path-to-signatures: 'signatures/version1/cla.json'
22+
path-to-document: 'https://raw.githubusercontent.com/Codeuctivity/PuppeteerSharp.Renderer/main/cla.md' # e.g. a CLA or a DCO document
23+
# branch should not be protected
24+
branch: 'main'
25+
allowlist: dependabot[bot],stesee
26+
27+
#below are the optional inputs - If the optional inputs are not given, then default values will be taken
28+
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
29+
#remote-repository-name: enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
30+
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
31+
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
32+
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
33+
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
34+
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
35+
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
36+
#use-dco-flag: true - If you are using DCO instead of CLA

.github/workflows/dotnet.yml

+25-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
path: "TestResult/**/*"
3737

3838
deployRelease:
39-
if: github.ref == 'refs/heads/main'
39+
if: github.ref == 'refs/heads/release'
4040
runs-on: ubuntu-latest
4141
needs: build
4242
steps:
@@ -49,8 +49,16 @@ jobs:
4949
run: dotnet restore
5050
- name: Build
5151
run: dotnet build --configuration Release --no-restore
52-
- name: Publish
53-
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -p:PublishProfile=FolderProfile
52+
- name: Publish FolderProfileWindows
53+
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -p:PublishProfile=FolderProfileWindows
54+
- name: Publish FolderProfilePortable
55+
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -p:PublishProfile=FolderProfilePortable
56+
- name: Zip FolderProfilePortable
57+
uses: thedoctor0/zip-release@main
58+
with:
59+
type: 'zip'
60+
directory: ./Codeuctivity.HtmlRendererCli/bin/Release/net6.0/publish/FolderProfilePortable
61+
filename: 'Codeuctivity.HtmlRendererCli.Portable.zip'
5462
- name: NugetPush
5563
env:
5664
NUGET_TOKEN_EXISTS: ${{ secrets.NUGET_TOKEN }}
@@ -66,10 +74,11 @@ jobs:
6674
files: |
6775
./Codeuctivity.HtmlRenderer/bin/Release/*.nupkg
6876
./Codeuctivity.HtmlRenderer/bin/Release/*.snupkg
69-
./Codeuctivity.HtmlRendererCli/bin/Release/net6.0/publish/win-x86/Codeuctivity.HtmlRendererCli.exe
77+
./Codeuctivity.HtmlRendererCli/bin/Release/net6.0/publish/FolderProfileWindows/Codeuctivity.HtmlRendererCli.exe
78+
./Codeuctivity.HtmlRendererCli.Portable.zip
7079
7180
deployTest:
72-
if: github.ref != 'refs/heads/main'
81+
if: github.ref == 'refs/heads/main'
7382
runs-on: ubuntu-latest
7483
needs: build
7584
steps:
@@ -83,7 +92,15 @@ jobs:
8392
- name: Build
8493
run: dotnet build --configuration Release --no-restore
8594
- name: Publish
86-
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -p:PublishProfile=FolderProfile
95+
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -p:PublishProfile=FolderProfileWindows
96+
- name: Publish FolderProfilePortable
97+
run: dotnet publish ./Codeuctivity.HtmlRendererCli --configuration Release -p:PublishProfile=FolderProfilePortable
98+
- name: Zip FolderProfilePortable
99+
uses: thedoctor0/zip-release@main
100+
with:
101+
type: 'zip'
102+
directory: ./Codeuctivity.HtmlRendererCli/bin/Release/net6.0/publish/FolderProfilePortable
103+
filename: 'Codeuctivity.HtmlRendererCli.Portable.zip'
87104
- name: NugetPush
88105
env:
89106
NUGET_TOKEN_EXISTS: ${{ secrets.NUGET_TEST_TOKEN }}
@@ -100,4 +117,5 @@ jobs:
100117
files: |
101118
./Codeuctivity.HtmlRenderer/bin/Release/*.nupkg
102119
./Codeuctivity.HtmlRenderer/bin/Release/*.snupkg
103-
./Codeuctivity.HtmlRendererCli/bin/Release/net6.0/publish/win-x86/Codeuctivity.HtmlRendererCli.exe
120+
./Codeuctivity.HtmlRendererCli/bin/Release/net6.0/publish/FolderProfileWindows/Codeuctivity.HtmlRendererCli.exe
121+
./Codeuctivity.HtmlRendererCli.Portable.zip

.github/workflows/stale.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '44 1 * * *'
11+
12+
jobs:
13+
stale:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v5
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
stale-issue-message: 'Stale issue message'
25+
stale-pr-message: 'Stale pull request message'
26+
stale-issue-label: 'no-issue-activity'
27+
stale-pr-label: 'no-pr-activity'

Codeuctivity.HtmlRenderer.sln

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FC3F4498-FA14-48A8-AA41-8D9095A0844F}"
77
ProjectSection(SolutionItems) = preProject
88
.editorconfig = .editorconfig
9+
.github\dependabot.yml = .github\dependabot.yml
910
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
1011
README.md = README.md
1112
EndProjectSection

Codeuctivity.HtmlRenderer/Codeuctivity.HtmlRenderer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<ItemGroup>
4040
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
4141
<PackageReference Include="PuppeteerSharp" Version="8.0.0" />
42-
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.46.0.54807">
42+
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.48.0.56517">
4343
<PrivateAssets>all</PrivateAssets>
4444
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4545
</PackageReference>

Codeuctivity.HtmlRendererCli/Properties/PublishProfiles/FolderProfile.pubxml

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>bin\Release\net6.0\publish\FolderProfilePortable</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net6.0</TargetFramework>
13+
<SelfContained>false</SelfContained>
14+
</PropertyGroup>
15+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>Any CPU</Platform>
9+
<PublishDir>bin\Release\net6.0\publish\FolderProfileWindows\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<TargetFramework>net6.0</TargetFramework>
12+
<SelfContained>true</SelfContained>
13+
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
14+
<PublishSingleFile>True</PublishSingleFile>
15+
<PublishReadyToRun>False</PublishReadyToRun>
16+
<PublishTrimmed>True</PublishTrimmed>
17+
</PropertyGroup>
18+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<IsPackable>false</IsPackable>
6+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
11+
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.46.0.54807">
12+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
13+
<PrivateAssets>all</PrivateAssets>
14+
</PackageReference>
15+
<PackageReference Include="xunit" Version="2.4.2" />
16+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
<PrivateAssets>all</PrivateAssets>
19+
</PackageReference>
20+
</ItemGroup>
21+
22+
<ItemGroup>
23+
<ProjectReference Include="..\Codeuctivity.HtmlRendererCli\Codeuctivity.HtmlRendererCli.csproj" />
24+
</ItemGroup>
25+
26+
</Project>

Codeuctivity.HtmlRendererCliTests/Codeuctivity.HtmlRendererCliTests.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
11-
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.46.0.54807">
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
11+
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.48.0.56517">
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
<PrivateAssets>all</PrivateAssets>
1414
</PackageReference>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>net6.0</TargetFrameworks>
5+
<IsPackable>false</IsPackable>
6+
<LangVersion>9.0</LangVersion>
7+
<Nullable>enable</Nullable>
8+
<IsPackable>false</IsPackable>
9+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<Compile Remove="SourceTestFiles\**" />
14+
<EmbeddedResource Remove="SourceTestFiles\**" />
15+
<None Remove="SourceTestFiles\**" />
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<PackageReference Include="Codeuctivity.ImageSharpCompare" Version="2.0.76" />
20+
<PackageReference Include="Codeuctivity.PdfjsSharp" Version="1.2.47" />
21+
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.46.0.54807">
22+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
23+
<PrivateAssets>all</PrivateAssets>
24+
</PackageReference>
25+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
26+
<PackageReference Include="xunit" Version="2.4.2" />
27+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
28+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
29+
<PrivateAssets>all</PrivateAssets>
30+
</PackageReference>
31+
</ItemGroup>
32+
33+
<ItemGroup>
34+
<ProjectReference Include="..\Codeuctivity.HtmlRenderer\Codeuctivity.HtmlRenderer.csproj" />
35+
</ItemGroup>
36+
</Project>

Codeuctivity.HtmlRendererTests/Codeuctivity.HtmlRendererTests.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Codeuctivity.ImageSharpCompare" Version="2.0.76" />
20-
<PackageReference Include="Codeuctivity.PdfjsSharp" Version="1.2.47" />
21-
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.46.0.54807">
20+
<PackageReference Include="Codeuctivity.PdfjsSharp" Version="1.2.70" />
21+
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.48.0.56517">
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
<PrivateAssets>all</PrivateAssets>
2424
</PackageReference>
25-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
25+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
2626
<PackageReference Include="xunit" Version="2.4.2" />
2727
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Codeuctivity.HtmlRenderer
22

3-
[![Nuget](https://img.shields.io/nuget/v/Codeuctivity.HtmlRenderer.svg)](https://www.nuget.org/packages/Codeuctivity.HtmlRenderer/) [![Build](https://github.com/Codeuctivity/PuppeteerSharp.Renderer/actions/workflows/dotnet.yml/badge.svg)](https://github.com/Codeuctivity/PuppeteerSharp.Renderer/actions/workflows/dotnet.yml) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/d550bcfac3374735bb98fbe9a63842d3)](https://www.codacy.com/gh/Codeuctivity/PuppeteerSharp.Renderer/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Codeuctivity/PuppeteerSharp.Renderer&utm_campaign=Badge_Grade) [![Donate](https://img.shields.io/static/v1?label=Paypal&message=Donate&color=informational)](https://www.paypal.com/donate?hosted_button_id=7M7UFMMRTS7UE)
3+
[![Nuget](https://img.shields.io/nuget/v/Codeuctivity.HtmlRenderer.svg)](https://www.nuget.org/packages/Codeuctivity.HtmlRenderer/) [![Build](https://github.com/Codeuctivity/PuppeteerSharp.Renderer/actions/workflows/dotnet.yml/badge.svg)](https://github.com/Codeuctivity/PuppeteerSharp.Renderer/actions/workflows/dotnet.yml) [![Donate](https://img.shields.io/static/v1?label=Paypal&message=Donate&color=informational)](https://www.paypal.com/donate?hosted_button_id=7M7UFMMRTS7UE)
44

55
Renders HTML to PDF or PNGs
66

0 commit comments

Comments
 (0)