feat: run db migrations only manually #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: db-migration | |
env: | |
DOTNET_VERSION: '8.*' # set this to the .NET Core version to use | |
on: | |
push: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
bundle: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up .NET Core | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Install dotnet-ef | |
run: dotnet tool install --global dotnet-ef | |
- name: Create migrations bundle | |
run: dotnet ef migrations bundle -p src/Tgvs --output efbundle.exe | |
- name: Upload artifact with migration bundle | |
uses: actions/upload-artifact@v3 | |
with: | |
name: efbundle | |
path: efbundle.exe | |