Set MinVer properties #49
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: 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: 8.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 | |
- name: Upload approval files | |
if: failure() && matrix.name == 'Linux' | |
uses: actions/[email protected] | |
with: | |
name: approval-files | |
path: src/NServiceBus.Extensions.DispatchRetries.Tests/API/APIApprovals.Approve_API.*.txt | |
retention-days: 1 | |
release: | |
needs: build | |
name: Release to Feedz.io | |
if: startsWith(github.ref, 'refs/tags') | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.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 }} |