Skip to content

Upload NuGet artifacts #465

Upload NuGet artifacts

Upload NuGet artifacts #465

Workflow file for this run

name: Build & Test
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build & Test
run: make
Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build & Test
run: make
- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
files: artifacts/*/*.cobertura.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload packages
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: artifacts/**/*.nupkg
- name: Publish packages to Feedz.io
if: github.ref == 'refs/heads/main'
run: make push NUGET_SOURCE=https://f.feedz.io/eiriktsarpalis/polytype/nuget/index.json NUGET_API_KEY=${{ secrets.FEEDZ_IO_KEY }}
MacOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build & Test
run: make