-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (27 loc) · 1.08 KB
/
nuget.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
name: Deploy Production Packages
on:
release:
types: [published]
jobs:
publish:
name: Pack and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.1.100'
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Package Client
run: dotnet pack src/Client/Client.csproj -c Release -o feeds/nuget
- name: Package Runly
run: dotnet pack src/Runly/Runly.csproj -c Release -o feeds/nuget
- name: Package Templates
run: dotnet pack src/Templates/Templates.csproj -c Release -o feeds/nuget
- name: Package Diagnostics
run: dotnet pack src/Diagnostics/Diagnostics.csproj -c Release -o feeds/runly
- name: Push to Nuget
run: find feeds/nuget -name '*.nupkg' | xargs -i dotnet nuget push {} -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }}
- name: Push to Runly
run: find feeds/runly -name '*.nupkg' | xargs -i dotnet nuget push {} -s https://api.runly.io/runly/packages/ -k ${{ secrets.RUNLY_KEY }}