Skip to content

Merge pull request #25 from TwitchLib/dev #18

Merge pull request #25 from TwitchLib/dev

Merge pull request #25 from TwitchLib/dev #18

Workflow file for this run

name: Release Nuget Package
on:
push:
branches: [ main ]
jobs:
release:
if: "contains(toJSON(github.event.commits.*.message), '[Release]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build TwitchLib.EventSub.Core
run: dotnet build -c Release --no-restore
- name: Pack TwitchLib.EventSub.Core
run: dotnet pack TwitchLib.EventSub.Core.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