Skip to content

v1.1.0

v1.1.0 #3

name: Publish
on:
release:
types: [released]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['7.0.x']
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Build
run: dotnet build ./src/Nox.Reference.Data.IpAddress/Nox.Reference.Data.IpAddress.csproj --warnaserror --configuration Release
- name: Pack
run: dotnet pack --no-build ./src/Nox.Reference.Data.IpAddress/Nox.Reference.Data.IpAddress.csproj --configuration Release -o ./artifacts
- name: Publish
run: dotnet nuget push ./artifacts/Nox.Reference.Data.IpAddress.*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json