Skip to content

allowing vnext to publish to myget #24

allowing vnext to publish to myget

allowing vnext to publish to myget #24

name: NUnit3TestAdapter.Myget.Publish
on:
push:
branches:
- main
- master
- release
- vnext
- myget
workflow_dispatch:
defaults:
run:
shell: pwsh
jobs:
build-windows:
name: Windows Build
runs-on: windows-latest
steps:
- name: ⤵Checkout Source
uses: actions/[email protected]
- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
- name: Build
run: .\build.ps1 -t QuickRelease
- name: 💾 Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: Package
path: package
- name: Publish nupkg and snupkg to Myget.org
run: |
foreach($file in (Get-ChildItem package -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.PUBLISHMYGET }}" --source https://www.myget.org/F/nunit/api/v3/index.json --skip-duplicate
}