Skip to content

Commit d44b558

Browse files
Add GHA workflow to publish package
1 parent 8791e70 commit d44b558

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
publish:
9+
name: Publish NuGet package
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # 2.3.4
13+
- uses: rohith/publish-nuget@c12b8546b67672ee38ac87bea491ac94a587f7cc # 2.5.5
14+
with:
15+
PROJECT_FILE_PATH: src/Exercism.Tests/Exercism.Tests.csproj
16+
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
17+
INCLUDE_SYMBOLS: true

src/Exercism.Tests/Exercism.Tests.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
<TargetFramework>net5.0</TargetFramework>
55
<PackageId>Exercism.Tests</PackageId>
66
<Version>0.1.0-alpha</Version>
7-
<PackageTags>Exercism;Testing</PackageTags>
8-
<Description>This library adds Exercism-specific functionality related to testing solutions.</Description>
7+
<Title>Exercism Testing</Title>
8+
<Description>This library adds Exercism-specific functionality related to testing solutions.</Description>
99
<Authors>Erik Schierboom</Authors>
10-
<Company>Exercism</Company>
10+
<Company>Exercism</Company>
11+
<PackageTags>Exercism;Testing</PackageTags>
12+
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
13+
<RepositoryUrl>https://github.com/exercism/dotnet-tests</RepositoryUrl>
14+
<IncludeSymbols>true</IncludeSymbols>
15+
<IncludeSource>true</IncludeSource>
16+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1117
</PropertyGroup>
1218

1319
</Project>

0 commit comments

Comments
 (0)