Skip to content

Commit c2defd1

Browse files
authored
Merge pull request #6 from sensslen/prepare-release
prepare release
2 parents 64bbbf6 + 85c3865 commit c2defd1

File tree

5 files changed

+35
-51
lines changed

5 files changed

+35
-51
lines changed

.github/workflows/action.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Main workflow"
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
jobs:
66
test:
@@ -42,6 +42,23 @@ jobs:
4242
- name: test
4343
run: dotnet test --configuration ${{ matrix.buildConfiguration }} --no-restore
4444

45+
check_code_format:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout repo
49+
uses: actions/checkout@v2
50+
51+
- name: Add dotnet-format problem matcher
52+
uses: xt0rted/dotnet-format-problem-matcher@v1
53+
54+
- name: Restore dotnet tools
55+
uses: xt0rted/dotnet-tool-restore@v1
56+
57+
- name: Run dotnet format
58+
uses: xt0rted/dotnet-format@v1
59+
with:
60+
only-changed-files: "true"
61+
4562
check_licenses:
4663
runs-on: ubuntu-latest
4764
strategy:

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ jobs:
4949
run: dotnet pack ./src/NuGetUtility/NuGetUtility.csproj -c Release --no-build -o ./artifacts -p:Version=${{ steps.version.outputs.full_without_prefix }}
5050

5151
- name: Zip artifacts
52-
uses: tomchavakis/action-zip@v0.1.1
52+
uses: thedoctor0/zip-release@0.7.5
5353
with:
54-
args: zip -qq -r ./release.zip ./artifacts
54+
type: 'zip'
55+
filename: 'release.zip'
56+
path: ./artifacts
5557

5658
- name: Release
5759
uses: softprops/action-gh-release@v1

Dockerfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
# Nuget License Utility [![Build Status](https://travis-ci.com/tomchavakis/nuget-license.svg?branch=develop)](https://travis-ci.com/tomchavakis/nuget-license.svg?branch=develop) [![NuGet](https://img.shields.io/nuget/v/dotnet-project-licenses.svg)](https://www.nuget.org/packages/dotnet-project-licenses)
1+
# Nuget License Utility
22

3-
A .net core tool to print the licenses of a project. This tool supports .NET Core and .NET Standard and .NET Framework
4-
Projects.
3+
A .net core tool to print and validate the licenses of a project. This tool supports .NET (Core), .NET Standard and .NET Framework Projects.
54

6-
## dotnet-project-licenses tool
5+
## nuget-license tool
76

87
### Install tool
98

109
```ps
11-
dotnet tool install --global dotnet-project-licenses
10+
dotnet tool install --global nuget-license
1211
1312
```
1413

1514
### Uninstall tool
1615

1716
```ps
18-
dotnet tool uninstall --global dotnet-project-licenses
17+
dotnet tool uninstall --global nuget-license
1918
```
2019

2120
## Usage
2221

23-
Usage: dotnet-project-licenses [options]
22+
Usage: nuget-license [options]
2423

2524
**Options:**
2625

@@ -43,35 +42,17 @@ Usage: dotnet-project-licenses [options]
4342
### Show help
4443

4544
```ps
46-
dotnet-project-licenses --help
45+
nuget-license --help
4746
```
4847

4948
### Validate licenses for .csproj file
5049

5150
```ps
52-
dotnet-project-licenses -i project.csproj
51+
nuget-license -i project.csproj
5352
```
5453

5554
### Generate machine readable output
5655

5756
```ps
58-
dotnet-project-licenses -i project.csproj -o jsonPretty
59-
```
60-
61-
## Docker
62-
63-
### Build the image
64-
65-
```
66-
docker build . -t nuget-license
67-
```
68-
69-
### Run the same example commands as above in docker
70-
71-
```ps
72-
docker run -it -v projectPath:/tmp nuget-license --help
73-
```
74-
75-
```ps
76-
docker run -it -v projectPath:/tmp nuget-license -i /tmp/project.csproj
77-
```
57+
nuget-license -i project.csproj -o jsonPretty
58+
```

src/NuGetUtility/NuGetUtility.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<PackageType>DotnetTool</PackageType>
99
<RepositoryType>git</RepositoryType>
1010
<Version>100.100.100</Version>
11-
<PackageId>dotnet-project-licenses</PackageId>
12-
<ToolCommandName>dotnet-project-licenses</ToolCommandName>
11+
<PackageId>nuget-license</PackageId>
12+
<ToolCommandName>nuget-license</ToolCommandName>
1313
<Authors>Tom Chavakis,Simon Ensslen</Authors>
1414
<Company>-</Company>
1515
<Title>.NET Core Tool to print and validate the licenses of dotnet project(s)</Title>
16-
<PackageProjectUrl>https://github.com/tomchavakis/nuget-license</PackageProjectUrl>
16+
<PackageProjectUrl>https://github.com/sensslen/nuget-license</PackageProjectUrl>
1717
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1818
<GeneratePackageOnBuild Condition="'$(GeneratePackageOnBuild)' == ''">false</GeneratePackageOnBuild>
1919
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>

0 commit comments

Comments
 (0)