Skip to content

Bump the event-bus group with 2 updates (#77) #4

Bump the event-bus group with 2 updates (#77)

Bump the event-bus group with 2 updates (#77) #4

Workflow file for this run

name: Build and Publish
on:
push:
# branches:
# - main
tags:
- '*'
paths-ignore:
- README.md
- LICENSE
- CHANGELOG.md
- docs/**
workflow_dispatch:
inputs:
reason:
description: 'Reason for running the action'
required: false
default: 'Pre-Release'
jobs:
Build:
runs-on: ubuntu-latest
env:
buildConfiguration: 'Release'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for GitVersion
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
with:
useConfigFile: true
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: >
dotnet build
--configuration $buildConfiguration
--no-restore
- name: Test
run: >
dotnet test
--configuration $buildConfiguration
--no-build
--verbosity normal
--collect "Code coverage"
- name: Pack
run: >
dotnet pack
--configuration $buildConfiguration
--no-build
--verbosity Detailed
--output $GITHUB_WORKSPACE/drop
-p:PackageVersion=$GITVERSION_NUGETVERSION
- name: Publish Artifact
uses: actions/upload-artifact@v3
with:
path: ${{ github.workspace }}/drop/*
name: drop
- name: Publish to NuGet.org
# if: startsWith(github.ref, 'refs/tags/')
run: >
dotnet nuget push "$GITHUB_WORKSPACE/drop/*"
-k ${{ secrets.NUGET_API_KEY }}
--skip-duplicate