-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 1.14 KB
/
ManualBuildWithNuget.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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