Skip to content

ManualBuildWithNuget #4

ManualBuildWithNuget

ManualBuildWithNuget #4

name: ManualBuildWithNuget
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-quality: 'ga'
- name: Restore dependencies
run: |
dotnet restore ./src/L3D.Net/L3D.Net.csproj
dotnet restore ./src/L3D.Net.Tests/L3D.Net.Tests.csproj
- name: Build
run: |
dotnet build --no-restore --configuration Release ./src/L3D.Net/L3D.Net.csproj
dotnet build --no-restore --configuration Debug ./src/L3D.Net.Tests/L3D.Net.Tests.csproj
- name: Test
run: dotnet test --no-build --verbosity normal ./src/L3D.Net.Tests/L3D.Net.Tests.csproj
- name: publish on nuget.org
id: publish_nuget
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: ./src/L3D.Net/L3D.Net.csproj
PACKAGE_NAME: L3D.Net
VERSION_STATIC: 1.0.0
TAG_COMMIT: false
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
NUGET_SOURCE: https://api.nuget.org
INCLUDE_SYMBOLS: false