-
Notifications
You must be signed in to change notification settings - Fork 84
30 lines (24 loc) · 911 Bytes
/
githubPackages.yml
File metadata and controls
30 lines (24 loc) · 911 Bytes
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
name: GitHub packages NuGet generation
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
name: Update NuGet
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Build solution and generate NuGet package
run: |
cd src\netstandard\
dotnet pack -c Release -o out /p:Version="${{ secrets.PACKAGE_VERSION }}-develop-${{ github.run_number }}"
- name: Install NuGet client
uses: nuget/setup-nuget@v1
- name: Add private GitHub registry to NuGet
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Code-Sharp/index.json -Username Code-Sharp -Password ${{ secrets.GITHUB_TOKEN }}
- name: Push generated package to GitHub registry
run: |
cd src\netstandard\
nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate