-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
64 lines (61 loc) · 1.73 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: 'DotNet NuGet Publish Action'
description: 'Build, package, and publish a .NET project to a NuGet repository'
author: 'Betalgo'
inputs:
projectFilePath:
description: 'Path to the .NET project file'
required: true
packageName:
description: 'Name of the NuGet package'
required: false
versionFilePath:
description: 'File path where the version information is stored'
required: false
versionRegex:
description: 'Regular expression to extract version information'
required: false
versionStatic:
description: 'Static version number to use'
required: false
tagCommit:
description: 'Whether to tag the commit with the version'
required: false
default: 'false'
tagFormat:
description: 'The format of the tag'
required: false
nugetKey:
description: 'NuGet API key'
required: true
nugetSource:
description: 'NuGet source URL'
required: true
includeSymbols:
description: 'Whether to include symbols in the NuGet package'
required: false
default: 'false'
noBuild:
description: 'Whether to skip the build process'
required: false
default: 'false'
codeSignCertPath:
description: 'Path to the code-signing certificate'
required: false
codeSignCertPassword:
description: 'Password for the code-signing certificate'
required: false
runs:
using: 'composite'
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
dotnet-version: '6.0.x'
- name: Build and run C# program
shell: cmd
run: |
dotnet build -c Release
dotnet run --project DotNuget.csproj --configuration Release -- ${{ inputs.projectFilePath }} ${{ inputs.packageName }}
branding:
icon: 'octagon'
color: 'green'