This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
Bump version #67
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: Build, Test & Publish | |
on: | |
push: | |
branches: | |
- master # Default release branch, may also be named 'master' or 'develop' | |
jobs: | |
publish: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
name: build, pack & publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7 | |
- name: Run Unit Tests | |
run: dotnet test | |
- name: Package | |
run: dotnet pack -c Release -o . InnerTube/InnerTube.csproj | |
- name: Publish to NuGet | |
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate |