-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.1 KB
/
Copy pathdotnet.yml
File metadata and controls
38 lines (32 loc) · 1.1 KB
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
38
name: Publish Package
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
# Build RadiantPi.Telnet
- name: Restore dependencies
run: dotnet restore Source/RadiantPi.Telnet/RadiantPi.Telnet.csproj
- name: Build
run: dotnet build --no-restore Source/RadiantPi.Telnet/RadiantPi.Telnet.csproj
# Build Samples
- name: Build HelloTrinnov Sample
run: dotnet build Samples/HelloTrinnov/HelloTrinnov.csproj
- name: Build HelloKaleidescape Sample
run: dotnet build Samples/HelloKaleidescape/HelloKaleidescape.csproj
# Publish RadiantPi.Telnet
- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: Source/RadiantPi.Telnet/RadiantPi.Telnet.csproj
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}