You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2022. It is now read-only.
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
58
+
# NUGET_SOURCE: https://api.nuget.org
59
+
60
+
# NuGet server uri hosting the symbols, defaults to https://api.nuget.org
61
+
# NUGET_SYMBOL_SOURCE: https://api.nuget.org
62
+
63
+
# Flag to toggle pushing symbols along with nuget package to the server, enabled by default
64
+
# INCLUDE_SYMBOLS: true
39
65
```
40
66
41
-
- Project gets built, packed & published only if there's a `NUGET_KEY` configured in the repository
67
+
- Project gets published only if there's a `NUGET_KEY` configured in the repository
42
68
43
69
## Inputs
44
70
45
71
Input | Default Value | Description
46
72
--- | --- | ---
47
73
PROJECT_FILE_PATH | | Filepath of the project to be packaged, relative to root of repository
48
-
PACKAGE_NAME | | NuGet package id to check against version changes, defaults to project name
49
-
VERSION_FILE_PATH | `[PROJECT_FILE_PATH]` | Filepath containing version info, relative to root of repository
74
+
PACKAGE_NAME | | NuGet package id, used for version detection & defaults to project name
75
+
VERSION_FILE_PATH | `[PROJECT_FILE_PATH]` | Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
50
76
VERSION_REGEX | `<Version>(.*)<\/Version>` | Regex pattern to extract version info in a capturing group
51
-
VERSION_STATIC| | Static version, useful for external providers like Nerdbank.GitVersioning
52
-
TAG_COMMIT | `true` | Flag to enable / disable git tagging
53
-
TAG_FORMAT | `v*` | Format of the git tag, `[*]` gets replaced with version
54
-
NUGET_KEY | | API key for the NuGet feed
77
+
VERSION_STATIC| | Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
78
+
TAG_COMMIT | `true` | Flag to toggle git tagging, enabled by default
79
+
TAG_FORMAT | `v*` | Format of the git tag, `[*]` gets replaced with actual version
80
+
NUGET_KEY | | API key to authenticate with NuGet server
81
+
NUGET_SYMBOL_KEY | `[NUGET_KEY]` | API key to authenticate with NuGet symbols server, defaults to NUGET_KEY
82
+
NUGET_SOURCE | `https://api.nuget.org` | NuGet server uri hosting the packages, defaults to https://api.nuget.org
83
+
NUGET_SYMBOL_SOURCE | `https://api.nuget.org` | NuGet server uri hosting the symbols, defaults to https://api.nuget.org
84
+
INCLUDE_SYMBOLS | `true` | Flag to toggle pushing symbols along with nuget package to the server, enabled by default
85
+
86
+
## Outputs
87
+
88
+
Output | Description
89
+
--- | ---
90
+
VERSION | Version of the associated git tag
91
+
PACKAGE_NAME | Name of the NuGet package generated
92
+
PACKAGE_PATH | Path to the generated NuGet package
93
+
SYMBOLS_PACKAGE_NAME | Name of the symbols package generated
94
+
SYMBOLS_PACKAGE_PATH | Path to the generated symbols package
55
95
56
-
**Note:**
57
-
Multiple projects can make use of steps to configure each project individually, common inputs between steps can be given as `env` for [job / workflow](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#env)
96
+
**FYI:**
97
+
- Outputs may not be set if the action failed
98
+
-`NUGET_SOURCE` must support `/v3-flatcontainer/PACKAGE_NAME/index.json` for version change detection to work
99
+
- Multiple projects can make use of steps to configure each project individually, common inputs between steps can be given as `env` for [job / workflow](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#env)
0 commit comments