Skip to content

Commit 4404d88

Browse files
authored
Create nuget.yml
1 parent e1a4c9c commit 4404d88

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/nuget.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
jobs:
8+
publish:
9+
name: publish-core
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup dotnet
15+
uses: actions/setup-dotnet@v1
16+
with:
17+
dotnet-version: 8.0.*
18+
include-prerelease: true
19+
# Publish
20+
- name: publish on version change
21+
id: publish_nuget
22+
uses: SpringHgui/[email protected]
23+
with:
24+
# Filepath of the project to be packaged, relative to root of repository
25+
PROJECT_FILE_PATH: src/OpenTask.Core.csproj
26+
27+
# NuGet package id, used for version detection & defaults to project name
28+
# PACKAGE_NAME: Core
29+
30+
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
31+
# VERSION_FILE_PATH: Directory.Build.props
32+
33+
# Regex pattern to extract version info in a capturing group
34+
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
35+
36+
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
37+
# VERSION_STATIC: 1.0.0
38+
39+
# Flag to toggle git tagging, enabled by default
40+
# TAG_COMMIT: true
41+
42+
# Format of the git tag, [*] gets replaced with actual version
43+
# TAG_FORMAT: v*
44+
45+
# API key to authenticate with NuGet server
46+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
47+
48+
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
49+
# NUGET_SOURCE: https://api.nuget.org
50+
51+
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
52+
# INCLUDE_SYMBOLS: false

0 commit comments

Comments
 (0)