-
Notifications
You must be signed in to change notification settings - Fork 23
32 lines (29 loc) · 964 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Release Nuget Package
on:
push:
branches: [ master ]
jobs:
release:
if: "contains(toJSON(github.event.commits.*.message), '[Release]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build TwitchLib.Communication
run: dotnet build -c Release --no-restore
- name: Pack TwitchLib.Api
run: dotnet pack TwitchLib.Communication.sln -v normal -c Release -o nugets --no-build
- name: Push to Nuget
run: dotnet nuget push "./nugets/*.nupkg" -k ${{ secrets.API_NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json
- name: Send Discord Notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
title: "Release Nuget Package"
username: "TwitchLib Deploy"