-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 967 Bytes
/
publish.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
37
38
39
40
41
42
43
44
# Authors:
#
# Sam Gold <https://github.com/goldsam>
# Sebastian Stehle <https://github.com/SebastianStehle>
# Lucas Viana <https://github.com/LSViana>
name: Publish
on:
push:
branches:
- 'main'
- 'for-pr'
tags:
- 'v*.*.*'
jobs:
pack-nuget:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download artifacts
uses: dawidd6/action-download-artifact@v2
with:
path: ./output
workflow: build-binaries.yml
workflow_conclusion: success
- name: NuGet pack
run: |
dotnet pack -c Release
- name: NuGet publish
run: |
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: |
**/*.nupkg