Skip to content

Merge branch 'master' of https://github.com/mauroservienti/NServiceBo… #8

Merge branch 'master' of https://github.com/mauroservienti/NServiceBo…

Merge branch 'master' of https://github.com/mauroservienti/NServiceBo… #8

Workflow file for this run

name: CI
on:
push:
tags:
- '[0-9].[0-9]+.[0-9]'
- '[0-9].[0-9]+.[0-9]+-*'
branches:
- master
- release-*
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
jobs:
build:
name: Build and test on ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-2019
name: Windows
- os: ubuntu-20.04
name: Linux
fail-fast: false
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: |
7.0.x
6.0.x
- name: Build
run: dotnet build src --configuration Release
- name: Tests
run: dotnet test src --configuration Release --no-build
- name: Upload packages
if: matrix.name == 'Linux'
uses: actions/[email protected]
with:
name: nuget-packages
path: nugets/
retention-days: 2
release:
needs: build
name: Release to Feedz.io
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-20.04
steps:
- name: Setup .NET 6
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Download artifacts
uses: actions/[email protected]
with:
name: nuget-packages
path: nugets/
- name: Push package to Feedz.io
run: dotnet nuget push ./nugets/*.nupkg --source https://f.feedz.io/mauroservienti/pre-releases/nuget --api-key ${{ secrets.FEEDZ_API_KEY }}
- name: Push symbols to Feedz.io
run: dotnet nuget push ./nugets/*.snupkg --source https://f.feedz.io/mauroservienti/pre-releases/symbols --api-key ${{ secrets.FEEDZ_API_KEY }}