-
Notifications
You must be signed in to change notification settings - Fork 20
27 lines (26 loc) · 1003 Bytes
/
publish.yaml
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
name: publish to nuget
on:
push:
branches:
- master # Default release branch
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- name: Check out Repo
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
5.0.x
- name: Restore dependencies
run: dotnet restore Blazor.Cropper/Blazor.Cropper.csproj
- name: Build project
run: dotnet build Blazor.Cropper/Blazor.Cropper.csproj --no-restore --configuration Release
- name: Publish to Nuget
run: dotnet nuget push Blazor.Cropper/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: publish package to GitHub
run: dotnet nuget push Blazor.Cropper/bin/Release/*.nupkg --api-key ${{secrets.GITHUB_TOKEN}} --source "https://nuget.pkg.github.com/Chronostasys/index.json" --skip-duplicate