-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (46 loc) · 3.08 KB
/
dotnetcore.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
45
46
47
48
49
name: .NET Core
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Build with dotnet
run: dotnet build --configuration Release "./src/ImageWizard.sln"
- name: Run unit tests
run: dotnet test "./src/ImageWizard.sln"
- name: Create the package
run: dotnet pack --configuration Release "./src/ImageWizard.sln"
- name: Publish "ImageWizard.Utils" to nuget
run: dotnet nuget push "./src/ImageWizard.Utils/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.Core" to nuget
run: dotnet nuget push "./src/ImageWizard.Core/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.ImageSharp" to nuget
run: dotnet nuget push "./src/ImageWizard.ImageSharp/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.SkiaSharp" to nuget
run: dotnet nuget push "./src/ImageWizard.SkiaSharp/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.SvgNet" to nuget
run: dotnet nuget push "./src/ImageWizard.SvgNet/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.Analytics" to nuget
run: dotnet nuget push "./src/ImageWizard.Analytics/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.Azure" to nuget
run: dotnet nuget push "./src/ImageWizard.Azure/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.Client" to nuget
run: dotnet nuget push "./src/ImageWizard.Client/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.MongoDB" to nuget
run: dotnet nuget push "./src/ImageWizard.MongoDB/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.Piranha" to nuget
run: dotnet nuget push "./src/ImageWizard.Piranha/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.DocNET" to nuget
run: dotnet nuget push "./src/ImageWizard.DocNET/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.OpenGraph" to nuget
run: dotnet nuget push "./src/ImageWizard.OpenGraph/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}
- name: Publish "ImageWizard.PuppeteerSharp" to nuget
run: dotnet nuget push "./src/ImageWizard.PuppeteerSharp/bin/Release/*.nupkg" -s "https://api.nuget.org/v3/index.json" -k ${{secrets.NUGET_API_KEY}}