-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 1.91 KB
/
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
32
33
34
35
36
37
38
39
40
41
name: Deploy packages
on:
push:
tags: ["v3.*"]
workflow_dispatch:
jobs:
deploy-packages:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.x
8.x
- name: Restore dependencies
run: dotnet restore ConductorSharp.sln
- name: Create ConductorSharp.Client package
run: dotnet pack --no-restore ./src/ConductorSharp.Client -c Release
- name: Create ConductorSharp.Engine package
run: dotnet pack --no-restore ./src/ConductorSharp.Engine -c Release
- name: Create ConductorSharp.Patterns package
run: dotnet pack --no-restore ./src/ConductorSharp.Patterns -c Release
- name: Create ConductorSharp.Toolkit package
run: dotnet pack --no-restore ./src/ConductorSharp.Toolkit -c Release
- name: Publish ConductorSharp.Client package
run: dotnet nuget push ./src/ConductorSharp.Client/bin/Release/ConductorSharp.Client*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
- name: Publish ConductorSharp.Engine package
run: dotnet nuget push ./src/ConductorSharp.Engine/bin/Release/ConductorSharp.Engine*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
- name: Publish ConductorSharp.Patterns package
run: dotnet nuget push ./src/ConductorSharp.Patterns/bin/Release/ConductorSharp.Patterns*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
- name: Publish ConductorSharp.Toolkit package
run: dotnet nuget push ./src/ConductorSharp.Toolkit/bin/Release/ConductorSharp.Toolkit*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json