Skip to content

Commit f4a8783

Browse files
authored
Update publish.yml
1 parent e89d34f commit f4a8783

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ jobs:
3535
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
3636
run: dotnet nuget push "./nupkg/*.nupkg" --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
3737

38+
- name: Notify Slack
39+
if: success()
40+
env:
41+
SLACK_WEBHOOKS_URL: ${{ secrets.SLACK_WEBHOOKS_URL }}
42+
run: |
43+
curl -X POST -H 'Content-type: application/json' --data '{
44+
"text": "📦 NuGet package version *${{ env.new_build }}* has been published to NuGet Packages."
45+
}' $SLACK_WEBHOOKS_URL
46+
3847
- name: Push to GitHub NuGet
3948
env:
4049
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)