forked from brandedoutcast/publish-nuget
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
62 lines (58 loc) · 2.44 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
name: Publish NuGet 3
author: Els_kom
description: Temporary fork of https://github.com/brandedoutcast/publish-nuget/
inputs:
PROJECT_FILE_PATH:
description: Filepath of the project to be packaged or a glob of projects in the form of **/*.csproj, relative to root of repository
required: true
PACKAGE_PATH:
description: Path to store all generated nuget packages, 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*$
PACKABLE_REGEX:
description: Regex pattern to extract if the project is a unit testing project.
required: false
default: ^\s*<IsPackable>(.*)</IsPackable>\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*
GITHUB_USER:
description: Required for packages pushed to Github Package Registry. User allowed to push to repository, defaults to GITHUB_ACTOR (user that triggered the action)
required: false
NUGET_KEY:
description: API key to authenticate with NuGet server, or a token, issued for GITHUB_USER if you use GPR
required: false
NUGET_SOURCE:
description: NuGet server uri hosting the packages, defaults to https://api.nuget.org
required: false
default: https://api.nuget.org
THOW_ERROR_IF_VERSION_EXISTS:
description: Flag to throw an error when trying to publish an existing version of a package
required: false
default: false
outputs:
VERSION:
description: Version of the associated git tag
runs:
using: node12
main: index.js
branding:
icon: package
color: blue