Skip to content

Commit ded1c83

Browse files
Rafal Maciagclaude
andcommitted
Add EventPi.NetworkMonitor to NuGet publishing workflow
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 871b963 commit ded1c83

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
4545
echo "Publishing version: $VERSION"
4646
47-
- name: Restore dependencies
47+
- name: Restore EventPi.Abstractions dependencies
4848
run: dotnet restore src/EventPi.Abstractions/EventPi.Abstractions.csproj
4949

5050
- name: Build EventPi.Abstractions
@@ -58,6 +58,20 @@ jobs:
5858
--output ./artifacts \
5959
/p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
6060
61+
- name: Restore EventPi.NetworkMonitor dependencies
62+
run: dotnet restore src/EventPi.NetworkMonitor/EventPi.NetworkMonitor.csproj
63+
64+
- name: Build EventPi.NetworkMonitor
65+
run: dotnet build src/EventPi.NetworkMonitor/EventPi.NetworkMonitor.csproj --configuration ${{ env.CONFIGURATION }} --no-restore /p:Version=${{ steps.get_version.outputs.VERSION }}
66+
67+
- name: Pack EventPi.NetworkMonitor
68+
run: |
69+
dotnet pack src/EventPi.NetworkMonitor/EventPi.NetworkMonitor.csproj \
70+
--configuration ${{ env.CONFIGURATION }} \
71+
--no-build \
72+
--output ./artifacts \
73+
/p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
74+
6175
- name: List artifacts
6276
run: ls -lh ./artifacts
6377

0 commit comments

Comments
 (0)