Skip to content

version 1.0.2

version 1.0.2 #18

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
tags: [ "*" ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Publish
if: startsWith(github.ref, 'refs/tags')
run: dotnet nuget push --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}} **/*.nupkg