Skip to content

Commit 7a8007f

Browse files
authored
Added a publish pipeline. (#200)
1 parent 3148050 commit 7a8007f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish NuGet Packages
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
name: Publish NuGet Packages
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup .NET9
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 9.x
20+
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
24+
- name: Build Solution
25+
run: dotnet build --configuration Release --no-restore
26+
27+
- name: Test
28+
run: dotnet test --configuration Release --no-build --verbosity normal --filter Category=Unit
29+
30+
- name: Push NuGet
31+
run: dotnet nuget push "**/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Added a publish pipeline.
13+
1014
### Changed
1115

1216
- Changed YML extensions to YAML.

0 commit comments

Comments
 (0)