forked from phongnguyend/Practical.CleanArchitecture
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.54 KB
/
.net-build-modularmonolith.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
50
51
52
53
54
55
name: .Net Build Modular Monolith
on:
push:
paths:
- 'src/ModularMonolith/**'
pull_request:
paths:
- 'src/ModularMonolith/**'
jobs:
build:
defaults:
run:
working-directory: src/ModularMonolith
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.101
- name: Build
run: dotnet build --configuration Release
- name: Publish ClassifiedAds.BackgroundServer
run: dotnet publish ClassifiedAds.BackgroundServer/*.csproj --configuration Release
- name: Publish ClassifiedAds.Migrator
run: dotnet publish ClassifiedAds.Migrator/*.csproj --configuration Release
- name: Publish ClassifiedAds.WebAPI
run: dotnet publish ClassifiedAds.WebAPI/*.csproj --configuration Release
- name: Upload ClassifiedAds.BackgroundServer
uses: actions/upload-artifact@v1.0.0
with:
name: ClassifiedAds.BackgroundServer
path: src/ModularMonolith/ClassifiedAds.BackgroundServer/bin/Release/net7.0/publish
- name: Upload ClassifiedAds.Migrator
uses: actions/upload-artifact@v1.0.0
with:
name: ClassifiedAds.Migrator
path: src/ModularMonolith/ClassifiedAds.Migrator/bin/Release/net7.0/publish
- name: Upload ClassifiedAds.WebAPI
uses: actions/upload-artifact@v1.0.0
with:
name: ClassifiedAds.WebAPI
path: src/ModularMonolith/ClassifiedAds.WebAPI/bin/Release/net7.0/publish