Skip to content

Commit 6ba6e19

Browse files
committed
1. added auto build/test/nuget publish workflow
2. fixed nuget license and icon warnings
1 parent ee82a1c commit 6ba6e19

File tree

4 files changed

+87
-6
lines changed

4 files changed

+87
-6
lines changed

.github/workflows/publish.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: publish to nuget
2+
on:
3+
push:
4+
branches:
5+
- master # Default release branch
6+
jobs:
7+
publish:
8+
name: build, pack & publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
# - name: Setup dotnet
14+
# uses: actions/setup-dotnet@v1
15+
# with:
16+
# dotnet-version: 3.1.200
17+
18+
# Publish
19+
- name: publish on version change
20+
id: publish_nuget
21+
uses: rohith/publish-nuget@v2
22+
with:
23+
# Filepath of the project to be packaged, relative to root of repository
24+
PROJECT_FILE_PATH: Dandraka.XmlUtilities/Dandraka.XmlUtilities/Dandraka.XmlUtilities.csproj
25+
26+
# NuGet package id, used for version detection & defaults to project name
27+
# PACKAGE_NAME: Core
28+
29+
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
30+
# VERSION_FILE_PATH: Directory.Build.props
31+
32+
# Regex pattern to extract version info in a capturing group
33+
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
34+
35+
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
36+
# VERSION_STATIC: 1.0.0
37+
38+
# Flag to toggle git tagging, enabled by default
39+
# TAG_COMMIT: true
40+
41+
# Format of the git tag, [*] gets replaced with actual version
42+
# TAG_FORMAT: v*
43+
44+
# API key to authenticate with NuGet server
45+
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}
46+
47+
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
48+
# NUGET_SOURCE: https://api.nuget.org
49+
50+
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
51+
# INCLUDE_SYMBOLS: false

Dandraka.XmlUtilities/Dandraka.XmlUtilities/Dandraka.XmlUtilities.csproj

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
<Company>dandraka.com</Company>
77
<Description>An XmlSlurper implementation for .Net.</Description>
88
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
9-
<PackageLicenseUrl>https://raw.githubusercontent.com/dandraka/XmlUtilities/master/LICENSE</PackageLicenseUrl>
9+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
1010
<PackageProjectUrl>https://github.com/dandraka/XmlUtilities</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/dandraka/XmlUtilities/</RepositoryUrl>
1212
<Copyright>Copyright (c) 2017 Jim (Dimitrios) Andrakakis</Copyright>
13-
<PackageIconUrl>https://github.com/dandraka/XmlUtilities/raw/master/icon.png</PackageIconUrl>
14-
<Version>1.2.1</Version>
15-
<PackageReleaseNotes>Release 1.2 is fully backwards compatible with 1.1 and has two major changes:
16-
1. a major overhaul of the tree walking algorithm, which now can take every xml you can throw at it. This solves most, if not all, the bugs of the previous release.
17-
2. an implicit type conversion for string, int, decimal, double and bool. So now you can parse an xml and directly use its numbers or true/false values (see examples).</PackageReleaseNotes>
13+
<PackageIcon>icon.png</PackageIcon>
14+
<Version>1.3.0</Version>
15+
<PackageReleaseNotes>
16+
Release 1.3 is fully backwards compatible with 1.1 and 1.2 and has two changes:
17+
1. Supports CDATA xml nodes and therefore solves issue #2 "Type System.Xml.XmlCDataSection is not supported".
18+
2. Ignores COMMENT xml nodes and therefore solves issue "Type System.Xml.XmlComment is not supported".
19+
</PackageReleaseNotes>
1820
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1921
<PackageTags>xml parsing dynamic</PackageTags>
2022
</PropertyGroup>
@@ -23,4 +25,9 @@
2325
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
2426
</ItemGroup>
2527

28+
<ItemGroup>
29+
<None Include="LICENSE.txt" Pack="true" PackagePath="LICENSE.txt"/>
30+
<None Include="icon.png" Pack="true" PackagePath="icon.png"/>
31+
</ItemGroup>
32+
2633
</Project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
MIT License
2+
3+
Note: Although not required by the license, the author kindly asks that you share any improvements you made.
4+
5+
Copyright (c) 2017 Dimitrios Andrakakis
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
7.2 KB
Loading

0 commit comments

Comments
 (0)