Skip to content

Build(deps): Bump actions/setup-dotnet from 4.1.0 to 4.2.0 #412

Build(deps): Bump actions/setup-dotnet from 4.1.0 to 4.2.0

Build(deps): Bump actions/setup-dotnet from 4.1.0 to 4.2.0 #412

Workflow file for this run

name: .NET Core build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Setup .NET Core
uses: actions/setup-dotnet@v4.2.0
with:
dotnet-version: 3.1.101
- name: Install dependencies
working-directory: ./PreMailer.Net
run: dotnet restore
- name: Build
working-directory: ./PreMailer.Net
run: dotnet build --configuration Release --no-restore
- name: Test
working-directory: ./PreMailer.Net
run: dotnet test --no-restore --verbosity normal --collect "Code coverage"
# Publish
- name: publish on version change
if: ${{ github.event_name == 'release' }}
uses: rohith/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: PreMailer.Net/PreMailer.Net/PreMailer.Net.csproj
NUGET_KEY: ${{secrets.NUGET_APIKEY}}