-
Notifications
You must be signed in to change notification settings - Fork 7
29 lines (25 loc) · 932 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
name: .NET Publish
on:
push:
branches: [ master ]
paths-ignore:
- '**/README.md'
- '**/LICENSE.md'
- '**/.gitattributes'
- '**/.gitignore'
- 'Images/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build and Pack
run: dotnet build RangeSlider.Avalonia --configuration Release
- name: Publish to Nuget
run: dotnet nuget push "RangeSlider.Avalonia/bin/Release/*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Publish to GitHub Packages
run: dotnet nuget push "RangeSlider.Avalonia/bin/Release/*.nupkg" --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/DmitryNizhebovsky/index.json --skip-duplicate