Skip to content

Commit

Permalink
Split-up dotnet EF migration bundle and explicitly set .net version t…
Browse files Browse the repository at this point in the history
…o 8.0.1
  • Loading branch information
southernsun authored and jasontaylordev committed Mar 3, 2024
1 parent 9fb4055 commit e6b5648
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,32 @@ jobs:
path: ./src/Web/publish/publish.zip
if-no-files-found: error

- name: Create EF Core migrations bundle
- name: Create EF Core migrations bundle - Install tool-manifest
if: ${{ inputs.build-artifacts == true }}
run: |
dotnet new tool-manifest
dotnet tool install dotnet-ef
env:
SkipNSwag: True

- name: Create EF Core migrations bundle - Install dotnet-ef
if: ${{ inputs.build-artifacts == true }}
run: |
dotnet tool install dotnet-ef --version 8.0.1
env:
SkipNSwag: True


- name: Create EF Core migrations bundle - bundle migrations
if: ${{ inputs.build-artifacts == true }}
run: |
dotnet ef migrations bundle --configuration Release -p ./src/Infrastructure/ -s ./src/Web/ -o efbundle.exe
env:
SkipNSwag: True


- name: Create EF Core migrations bundle - zip migrations bundle
if: ${{ inputs.build-artifacts == true }}
run: |
zip -r ./efbundle.zip efbundle.exe
env:
SkipNSwag: True
Expand Down

0 comments on commit e6b5648

Please sign in to comment.