forked from waldosax/publish-nuget
-
Notifications
You must be signed in to change notification settings - Fork 9
/
action.yml
68 lines (60 loc) · 2.41 KB
/
action.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Publish NuGet@alirezanet
author: Alireza Sabouri (@alirezanet) - ford Rohith Reddy (@rohith)
description: Build, Pack & Publish a NuGet package with dotnet core on project version change
inputs:
PROJECT_FILE_PATH:
description: Filepath of the project to be packaged, relative to root of repository
required: true
PACKAGE_NAME:
description: NuGet package id, used for version detection & defaults to project name
required: false
VERSION_FILE_PATH:
description: Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
required: false
VERSION_REGEX:
description: Regex pattern to extract version info in a capturing group
required: false
default: ^\s*<Version>(.*)<\/Version>\s*$
VERSION_STATIC:
description: Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
required: false
TAG_COMMIT:
description: Flag to toggle git tagging, enabled by default
required: false
default: true
TAG_FORMAT:
description: Format of the git tag, [*] gets replaced with actual version
required: false
default: v*
NUGET_KEY:
description: API key to authenticate with NuGet server
required: false
NUGET_SOURCE:
description: NuGet server uri hosting the packages, defaults to https://api.nuget.org
required: false
default: https://api.nuget.org
INCLUDE_SYMBOLS:
description: Flag to toggle pushing symbols along with nuget package to the server, disabled by default
required: false
default: false
NO_BUILD:
description: Flag to toggle not building the project and letting pack command handle restoring & building, disabled by default
required: false
default: false
outputs:
VERSION:
description: Version of the associated git tag
PACKAGE_NAME:
description: Name of the NuGet package generated
PACKAGE_PATH:
description: Path to the generated NuGet package
SYMBOLS_PACKAGE_NAME:
description: Name of the symbols package generated
SYMBOLS_PACKAGE_PATH:
description: Path to the generated symbols package
runs:
using: node16
main: index.js
branding:
icon: package
color: blue