-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (30 loc) · 1.27 KB
/
publish-to-nuget-windows.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
38
39
40
41
42
43
name: Publish to Nuget (Windows)
on:
release:
types: [created]
jobs:
build:
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: Pipelines.sln # Replace with your solution name, i.e. MyWpfApp.sln.
Test_Project_Path: Refactoring.Pipelines.Test\Refactoring.Pipelines.Test.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: 2.1.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: deploy to nuget
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: ./PublishToNuget.cmd