Skip to content

Commit bd8fcb5

Browse files
authored
Update nuget.yml
1 parent 1741fad commit bd8fcb5

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/nuget.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,31 @@ jobs:
1919
# Publish
2020
- name: publish on version change
2121
id: publish_nuget
22-
uses: SpringHgui/publish-nuget@1.0.1
22+
uses: brandedoutcast/publish-nuget@v2
2323
with:
2424
# Filepath of the project to be packaged, relative to root of repository
2525
PROJECT_FILE_PATH: src/OpenTask.Core/OpenTask.Core.csproj
26+
VERSION_STATIC: ${{ steps.get_version.outputs.VERSION }}
27+
28+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
2629

30+
# Configuration to build and package
31+
# BUILD_CONFIGURATION: Release
32+
33+
# Platform target to compile (default is empty/AnyCPU)
34+
# BUILD_PLATFORM: x64
35+
2736
# NuGet package id, used for version detection & defaults to project name
2837
# PACKAGE_NAME: Core
29-
38+
3039
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
3140
# VERSION_FILE_PATH: Directory.Build.props
3241

3342
# Regex pattern to extract version info in a capturing group
3443
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
35-
44+
3645
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
37-
VERSION_STATIC: ${{ steps.get_version.outputs.VERSION }}
46+
# VERSION_STATIC: 1.0.0
3847

3948
# Flag to toggle git tagging, enabled by default
4049
# TAG_COMMIT: true
@@ -43,10 +52,12 @@ jobs:
4352
# TAG_FORMAT: v*
4453

4554
# API key to authenticate with NuGet server
46-
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
55+
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}
4756

4857
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
4958
# NUGET_SOURCE: https://api.nuget.org
5059

5160
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
52-
# INCLUDE_SYMBOLS: false
61+
# INCLUDE_SYMBOLS: false
62+
63+

0 commit comments

Comments
 (0)