-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (29 loc) · 1.03 KB
/
create_nuget.yml
File metadata and controls
36 lines (29 loc) · 1.03 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
36
name: Publish NuGet Package
on:
push:
branches:
- master
jobs:
publish_to_nuget:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./LicencingNET
name: Update NuGet
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0'
source-url: https://nuget.pkg.github.com/RemoteCloud/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build source
run: dotnet build --configuration Release
- name: Create package
run: dotnet pack LicencingNET.csproj --output nuget-package --configuration Release
# --no-symbols true is a bug workaround. In the future --no-symbols should just work
- name: Push to GitHub registry
run: dotnet nuget push ./nuget-package/*.nupkg --skip-duplicate --no-symbols true --api-key ${{ secrets.GITHUB_TOKEN }}