Skip to content

[BDB-3] Handle ApplyConfigurationsFromAssembly in BaseDbContext #25

[BDB-3] Handle ApplyConfigurationsFromAssembly in BaseDbContext

[BDB-3] Handle ApplyConfigurationsFromAssembly in BaseDbContext #25

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "**" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Restore dependencies
run: dotnet restore
- name: Test projects
run: dotnet test
- name: Pack projects
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
dotnet pack --configuration Release
else
VERSION=$(date +"%Y.%m.%d.%H%M")
dotnet pack --configuration Release /p:Version=${VERSION}-dev
fi
- name: Push NuGet packages
run: dotnet nuget push **/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json