forked from inflatablefriends/lastfm
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 882 Bytes
/
release.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
name: Publish
on:
push:
branches: [ release ]
paths-ignore:
- 'doc/**'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Install dependencies
run: dotnet restore IF.Lastfm.sln
- name: Build
run: dotnet build -c Release --no-restore IF.Lastfm.sln
- name: Test
run: dotnet test --no-restore IF.Lastfm.sln
- name: Pack
run: dotnet pack -c Release --no-build --include-source -o ./tmp IF.Lastfm.sln
- name: Publish
run: dotnet nuget push ./tmp/Inflatable.Lastfm*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
path: ./tmp/*nupkg