Skip to content

Bump Spectre.Console from 0.45.0 to 0.48.0 #69

Bump Spectre.Console from 0.45.0 to 0.48.0

Bump Spectre.Console from 0.45.0 to 0.48.0 #69

Workflow file for this run

name: Build & test & publish
on:
push:
branches: [ "main" ]
tags: [ "v*" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
- name: Build project
run: ./build.sh -Target All
- name: Upload test results
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-results
path: test-results
if-no-files-found: error
retention-days: 7
- name: Upload code coverage report
uses: codecov/codecov-action@v3
if: ${{ always() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./test-results/
- name: Report tests
uses: dorny/test-reporter@v1
if: ${{ always() }}
with:
name: .NET Tests
path: ./test-results/**/*.trx
reporter: dotnet-trx
fail-on-error: false
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: packages
path: artifacts/*.nupkg
if-no-files-found: error
retention-days: 7
publish-to-nuget-org:
name: Publish to NuGet.org
needs: [ build ]
environment: NuGet.org
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x
- name: Download packages
uses: actions/download-artifact@v3
with:
name: packages
path: packages/
- name: Publish packages
run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} packages/*.nupkg