-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
37 lines (32 loc) · 944 Bytes
/
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
name: "Publish dotnet lib"
description: "Deploy dotnet lib to registry"
inputs:
path:
description: "Path of the project"
required: true
nupkg_path:
description: "Path of the nupkg"
required: true
source:
description: "Destination package source"
required: true
api_key:
description: "Destination package source api key"
required: true
package_source:
description: "Destination registry"
required: true
runs:
using: "composite"
steps:
- name: Build the Library
shell: "bash"
run: |
cd ${{ inputs.path }}
dotnet build --configuration Release
- name: Create nuget packages
shell: "bash"
run: dotnet pack ${{ inputs.path }} --configuration Release --no-build
- name: Publish nuget packages
shell: "bash"
run: dotnet nuget push ${{ inputs.nupkg_path }} -k ${{inputs.api_key}} -s ${{inputs.package_source}} --skip-duplicate