Skip to content

Merge pull request #6 from SKProCH/dev #32

Merge pull request #6 from SKProCH/dev

Merge pull request #6 from SKProCH/dev #32

Workflow file for this run

name: Publish package
on:
push:
branches: [ master, publish_test ]
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Publish to Nuget
run: dotnet nuget push "YandexMusicResolver/bin/Release/*.nupkg" --api-key ${{secrets.NUGETAPIKEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish to GitHub Packages
run: dotnet nuget push "YandexMusicResolver/bin/Release/*.nupkg" --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/SKProCH/index.json --skip-duplicate