Skip to content

Merge pull request #7 from davek-dev/master #4

Merge pull request #7 from davek-dev/master

Merge pull request #7 from davek-dev/master #4

Workflow file for this run

name: Build / Publish
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Build
run: dotnet build -c Release
- name: Publish the package to nuget.org
if: github.ref == 'refs/heads/master'
run: dotnet nuget push "**/*.nupkg" -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_APIKEY }}