Skip to content

Fix for issue 20 (#21) #6

Fix for issue 20 (#21)

Fix for issue 20 (#21) #6

Workflow file for this run

name: Release
on:
push:
tags:
- '*.*.*'
env:
ARTIFACT_PATH: artifacts
VERSION: ${{github.ref_name}}
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Environment
run: env
- name: Checkout
uses: actions/checkout@v2
- name: Setup
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 -r ${{ env.ARTIFACT_PATH }} --no-build -l trx --verbosity=normal
- name: Pack
run: dotnet pack -c Release -o ${{ env.ARTIFACT_PATH }} --no-build
- name: Publish
run: dotnet nuget push ${{ env.ARTIFACT_PATH }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source "https://api.nuget.org/v3/index.json"
- name: Artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: ${{ env.ARTIFACT_PATH }}/**/*