Skip to content

Merge pull request #1 from olsh/main #3

Merge pull request #1 from olsh/main

Merge pull request #1 from olsh/main #3

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
- name: Pack
if: github.ref == 'refs/heads/main'
run: dotnet pack -c Release --no-build --include-source
- name: Publish the package to nuget.org
if: github.ref == 'refs/heads/main'
run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json --skip-duplicate
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}