Skip to content

rename background projects #258

rename background projects

rename background projects #258

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: 8.0.100
- name: Install Aspire
run: dotnet workload install aspire
- name: Build
run: dotnet build --configuration Release
- name: Publish ClassifiedAds.Background
run: dotnet publish ClassifiedAds.Background/*.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.Background
uses: actions/upload-artifact@v4
with:
name: ClassifiedAds.Background
path: src/ModularMonolith/ClassifiedAds.Background/bin/Release/net8.0/publish
- name: Upload ClassifiedAds.Migrator
uses: actions/upload-artifact@v4
with:
name: ClassifiedAds.Migrator
path: src/ModularMonolith/ClassifiedAds.Migrator/bin/Release/net8.0/publish
- name: Upload ClassifiedAds.WebAPI
uses: actions/upload-artifact@v4
with:
name: ClassifiedAds.WebAPI
path: src/ModularMonolith/ClassifiedAds.WebAPI/bin/Release/net8.0/publish