-
Notifications
You must be signed in to change notification settings - Fork 71
35 lines (27 loc) · 961 Bytes
/
pack.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
name: Pack Nuget
on:
push:
branches: [ "action/pack" ]
pull_request:
branches: [ "action/pack" ]
jobs:
nuget:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Nuget Ursa
run: dotnet pack ./src/Ursa -o ./nugets
- name: Nuget Ursa.Themes.Semi
run: dotnet pack ./src/Ursa.Themes.Semi -o ./nugets
- name: Nuget Prism Extension
run: dotnet pack ./src/Ursa.PrismExtension -o ./nugets
- name: Nuget ReactiveUI Extension
run: dotnet pack ./src/Ursa.ReactiveUIExtension -o ./nugets
- name: Publish NuGet package
run: dotnet nuget push "./nugets/*.nupkg" --api-key ${{ secrets.NUGET_ORG_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: nugets
path: ./nugets