Skip to content

Commit 4caa720

Browse files
author
Pavel Šavara
committed
Build infra
2 parents 94368fc + b402a12 commit 4caa720

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: .NET Core
2-
on: [push]
2+
on: push
33
jobs:
44
build:
55
runs-on: ubuntu-latest
@@ -13,3 +13,7 @@ jobs:
1313
run: dotnet build --configuration Release
1414
- name: Test
1515
run: dotnet test src/PostalCodes.UnitTests/PostalCodes.UnitTests.csproj
16+
- name: Publish
17+
run: |
18+
dotnet pack . -p:PackageVersion=3.0.0.1 -o .
19+
dotnet nuget push src/PostalCodes/PostalCodes.3.0.0.1.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ src/PostalCodes.Documentation/Help/
1717
*.log
1818
*.userprefs
1919
index.md
20+
*.nupkg

PostalCodes.Net.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0"?>
2-
<package >
2+
<package>
33
<metadata>
44
<id>PostalCodes</id>
55
<version>$version$</version>

0 commit comments

Comments
 (0)