Merge pull request #27 from AoshiW/modern-.NET #16
This file contains 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 Preview Nuget Package | |
on: | |
push: | |
branches: [ dev ] | |
jobs: | |
release-preview: | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build TwitchLib.Communication | |
run: dotnet build -c Release --no-restore | |
- name: Pack TwitchLib.Communication | |
run: dotnet pack TwitchLib.Communication.sln -v normal -c Release -o nugets --no-build --version-suffix "preview-${{ github.sha }}" | |
- 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 Preview Nuget Package" | |
username: "TwitchLib Deploy" |