This repository was archived by the owner on May 13, 2025. It is now read-only.
Update README.md: Pubsub decommissioned #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 6.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build TwitchLib.PubSub | |
| run: dotnet build -c Release --no-restore | |
| - name: Pack TwitchLib.PubSub | |
| run: dotnet pack TwitchLib.PubSub.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" |