-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 1.05 KB
/
dotnet.yml
File metadata and controls
31 lines (27 loc) · 1.05 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
name: Release to Nuget
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: '6.0.x'
- name: Create NuGet Package
run: dotnet pack -c Release /p:Version=${{ github.event.release.tag_name }} /p:PackageReleaseNotes="See https://github.com/crysis90war/DevHopTools/releases/tag/${{ github.event.release.tag_name }}"
- name: Archive NuGet Package
uses: actions/upload-artifact@v2
with:
name: DevHopTools
path: ./DevHopTools/bin/Release/DevHopTools.${{ github.event.release.tag_name }}.nupkg
- name: Archive NuGet Package
uses: actions/upload-artifact@v2
with:
name: DevHopTools
path: ./DevHopTools/bin/Release/DevHopTools.${{ github.event.release.tag_name }}.nupkg
- name: Publish Nuget Package
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.nuget_api_key }} --source https://api.nuget.org/v3/index.json --no-symbols