Skip to content

Update project dependecies #42

Update project dependecies

Update project dependecies #42

Workflow file for this run

name: .NET
on:
push:
tags:
- v**
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c release ./src
- name: Test
run: dotnet test --no-build --verbosity normal -c release ./src
publish:
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c release ./src
- name: Test
run: dotnet test --no-build --verbosity normal -c release ./src
- name: Build And Pack
run: |
pwsh ./pack.ps1 -version ${GITHUB_REF_NAME:1}
cd ./nugets
dotnet nuget push *.nupkg --skip-duplicate -s https://nuget.org -k ${{ secrets.API_KEY }}