Skip to content

Merge branch 'main' of https://github.com/armindogomes/base24serial #19

Merge branch 'main' of https://github.com/armindogomes/base24serial

Merge branch 'main' of https://github.com/armindogomes/base24serial #19

Workflow file for this run

name: Publish package
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore Base24Serial/Base24Serial.sln
- name: Build
run: dotnet build --configuration Release --no-restore Base24Serial/Base24Serial.sln
#- name: Run Tests
# run: dotnet test --no-build --verbosity normal Base24Serial/Base24Serial.sln
- name: Pack Library
run: dotnet pack Base24Serial/Base24Serial/Base24Serial.csproj --configuration Release --no-build --output ./nupkg
- name: Publish to NuGet
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push ./nupkg/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json