-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.08 KB
/
NugetPublishing.yml
File metadata and controls
35 lines (32 loc) · 1.08 KB
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
name: Publish Packages
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Install dependencies
run: dotnet restore
- name: Get Version from Tag
id: get_version
uses: battila7/get-version-action@v2
#- name: Publish DTD.Sort.Net
# uses: drusellers/publish-nuget@master
# with:
# project-file-path: ./DTD.Sort.Net.Main/DTD.Sort.Net.Main.csproj
# nuget-key: ${{secrets.NUGET_API_KEY}}
# version: ${{ steps.get_version.outputs.version-without-v }}
- name: publish on version change
uses: rohith/publish-nuget@v2
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: ./DTD.Sort.Net.Main/DTD.Sort.Net.Main.csproj
VERSION_STATIC: ${{ steps.get_version.outputs.version-without-v }}
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
PACKAGE_NAME: DTD.Sort.Net