Skip to content

Commit 2cd6859

Browse files
committed
Added github actions
1 parent 4e01512 commit 2cd6859

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
## LICENSE: https://github.com/brandedoutcast/publish-nuget/blob/master/LICENSE
2+
3+
name: publish to nuget
4+
on:
5+
push:
6+
branches:
7+
- master # Default release branch, may also be named 'master' or 'develop'
8+
jobs:
9+
publish:
10+
name: build, pack & publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
# - name: Setup dotnet
16+
# uses: actions/setup-dotnet@v1
17+
# with:
18+
# dotnet-version: 3.1.200
19+
20+
# Publish
21+
- name: publish on version change
22+
id: publish_nuget
23+
uses: brandedoutcast/publish-nuget@v2
24+
with:
25+
# Filepath of the project to be packaged, relative to root of repository
26+
PROJECT_FILE_PATH: LanboostPathFinding/LanboostPathFinding.csproj
27+
28+
# Configuration to build and package
29+
# BUILD_CONFIGURATION: Release
30+
31+
# Platform target to compile (default is empty/AnyCPU)
32+
# BUILD_PLATFORM: x64
33+
34+
# NuGet package id, used for version detection & defaults to project name
35+
# PACKAGE_NAME: Core
36+
37+
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
38+
# VERSION_FILE_PATH: Directory.Build.props
39+
40+
# Regex pattern to extract version info in a capturing group
41+
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
42+
43+
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
44+
VERSION_STATIC: 1.0.1
45+
46+
# Flag to toggle git tagging, enabled by default
47+
# TAG_COMMIT: true
48+
49+
# Format of the git tag, [*] gets replaced with actual version
50+
# TAG_FORMAT: v*
51+
52+
# API key to authenticate with NuGet server
53+
# NUGET_KEY: ${{secrets.NUGET_API_KEY}}
54+
55+
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
56+
# NUGET_SOURCE: https://api.nuget.org
57+
58+
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
59+
# INCLUDE_SYMBOLS: false

0 commit comments

Comments
 (0)