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.
Copy file name to clipboardExpand all lines: README.md
+17-19Lines changed: 17 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,51 +12,49 @@ on:
12
12
- master # Default release branch
13
13
jobs:
14
14
publish:
15
-
name: list on nuget
15
+
name: build, pack & push
16
16
runs-on: ubuntu-latest
17
17
steps:
18
18
- uses: actions/checkout@v2
19
19
20
-
# Required for a specific dotnet version that doesn't come with ubuntu-latest / windows-latest
20
+
# Required in case of previous dotnet SDK versions as the host always has latest version installed
21
21
# Visit bit.ly/2synnZl to see the list of SDKs that are pre-installed with ubuntu-latest / windows-latest
22
22
# - name: Setup dotnet
23
23
# uses: actions/setup-dotnet@v1
24
24
# with:
25
25
# dotnet-version: 3.1.100
26
-
26
+
27
27
# Publish
28
28
- name: publish on version change
29
29
uses: rohith/publish-nuget@v2
30
30
with:
31
31
PROJECT_FILE_PATH: Core/Core.csproj # Relative to repository root
32
-
# VERSION_FILE_PATH: Directory.Build.props # Filepath with version info, relative to repository root. Defaults to project file
32
+
# PACKAGE_NAME: NuGet package id, REQUIRED if it's different from project name
33
+
# VERSION_FILE_PATH: Directory.Build.props # Relative to repository root, defaults to project file
33
34
# VERSION_REGEX: <Version>(.*)<\/Version> # Regex pattern to extract version info in a capturing group
34
-
# VERSION_STATIC: Bypasses version resolution; useful for external providers like Nerdbank.GitVersioning
35
-
# TAG_COMMIT: true # Flag to enable / disalge git tagging
35
+
# VERSION_STATIC: Static version, useful for external providers like Nerdbank.GitVersioning
36
+
# TAG_COMMIT: true # Flag to enable / disable git tagging
36
37
# TAG_FORMAT: v* # Format of the git tag, [*] gets replaced with version
37
-
# NUGET_KEY: ${{secrets.NUGET_API_KEY}} # nuget.org API key
38
-
# PACKAGE_NAME: NuGet package name, required when it's different from project name. Defaults to project name
38
+
# NUGET_KEY: ${{secrets.NUGET_API_KEY}} # API key for the NuGet feed
39
39
```
40
40
41
-
- With all settings on default, updates to project version are monitored on every push / PR merge to master & a new tag is created
42
-
- If a `NUGET_KEY` is present then the project gets built, packed & published to nuget.org
41
+
- Project gets built, packed & published only if there's a `NUGET_KEY` configured in the repository
43
42
44
43
## Inputs
45
-
Most of the inputs are optional
46
44
47
45
Input | Default Value | Description
48
46
--- | --- | ---
49
-
PROJECT_FILE_PATH | | File path of the project to be packaged, relative to repository root
50
-
VERSION_FILE_PATH | `[PROJECT_FILE_PATH]` | File path containing version info, relative to repository root
47
+
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
51
50
VERSION_REGEX | `<Version>(.*)<\/Version>` | Regex pattern to extract version info in a capturing group
52
-
VERSION_STATIC| | Bypasses version resolution; useful for external providers like Nerdbank.GitVersioning
51
+
VERSION_STATIC| | Static version, useful for external providers like Nerdbank.GitVersioning
53
52
TAG_COMMIT | `true` | Flag to enable / disable git tagging
54
-
TAG_FORMAT | `v*` | `[*]` is a placeholder for the actual project version
55
-
NUGET_KEY | | API key to authorize the package upload to nuget.org
56
-
PACKAGE_NAME | | Name of the NuGet package, required when it's different from project name
53
+
TAG_FORMAT | `v*` | Format of the git tag, `[*]` gets replaced with version
54
+
NUGET_KEY | | API key for the NuGet feed
57
55
58
-
**Note:**
59
-
For multiple projects, every input except `PROJECT_FILE_PATH` can be given as `env`variable at [job / workflow level](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#env)
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)
0 commit comments