Skip to content

Commit b007e3c

Browse files
committed
add publishing to nuget via CI
-also replace broken dotnet install action
1 parent a5d5255 commit b007e3c

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.github/workflows/maven-publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: publish maven package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-dotnet@v1.6.0
13+
with:
14+
dotnet-version: '3.1.x'
15+
- run: dotnet pack src/Regula.DocumentReader.WebClient -c Release -p:PackageVersion=${{github.event.release.name}}
16+
- run: dotnet nuget push src/Regula.DocumentReader.WebClient/bin/Release/Regula.DocumentReader.WebClient.${{github.event.release.name}}.nupkg -k ${{secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json

.github/workflows/run-smoke-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: actions/setup-dotnet@v1
16+
- uses: actions/setup-dotnet@v1.6.0
1717
with:
1818
dotnet-version: '3.1.x'
1919
- run: dotnet build src/Regula.DocumentReader.NetCoreExample -c Release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ We are always thrilled to receive pull requests, and do our best to process them
2727
`Regula.DocumentReader.WebClient` is on the NuGet Package Index:
2828

2929
```bash
30-
PM> Install-Package Regula.DocumentReader.WebClient -Version 1.0.0
30+
PM> Install-Package Regula.DocumentReader.WebClient -Version 5.2.0
3131
```
3232

3333
## Example

src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Product>DocumentReader WebClient</Product>
77
<PackageTags>regula document processing id card rfid ocr barcode ipi</PackageTags>
88
<PackageId>Regula.DocumentReader.WebClient</PackageId>
9-
<PackageVersion>1.0.1</PackageVersion>
9+
<PackageVersion>5.2.0</PackageVersion>
1010
<Version>1.0.1</Version>
1111
</PropertyGroup>
1212
<ItemGroup>

0 commit comments

Comments
 (0)