-
-
Notifications
You must be signed in to change notification settings - Fork 108
41 lines (33 loc) · 1.24 KB
/
Copy pathnugetci.yml
File metadata and controls
41 lines (33 loc) · 1.24 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
39
40
41
name: Nuget CI
on:
push:
branches: [ main, release/* ]
pull_request:
branches: [ main, release/* ]
jobs:
build:
runs-on: windows-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: setup .net core sdk
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.*
- name: dotnet build
run: dotnet build RulesEngineEditor.sln --configuration Release
- name: dotnet pack
run: dotnet pack RulesEngineEditor.sln -c Release --no-build --include-source --include-symbols
- name: setup nuget
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: NuGet/setup-nuget@v1.0.6
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
with:
nuget-version: latest
- name: Publish NuGet
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: src/RulesEngineEditor/RulesEngineEditor.csproj # Relative to repository root
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
PACKAGE_NAME: RulesEngineEditor