diff --git a/.github/workflows/master_push.yml b/.github/workflows/master_push.yml index 261f25b..65befcf 100644 --- a/.github/workflows/master_push.yml +++ b/.github/workflows/master_push.yml @@ -78,7 +78,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{needs.build.outputs.version}} - release_name: ${{needs.build.outputs.version}} + tag_name: ${{ steps.gitversion.outputs.SemVer }} + release_name: ${{ steps.gitversion.outputs.SemVer }} draft: false prerelease: false diff --git a/WatchIt.WebAPI/WatchIt.WebAPI/Program.cs b/WatchIt.WebAPI/WatchIt.WebAPI/Program.cs index 751b900..d52813c 100644 --- a/WatchIt.WebAPI/WatchIt.WebAPI/Program.cs +++ b/WatchIt.WebAPI/WatchIt.WebAPI/Program.cs @@ -36,6 +36,11 @@ public static class Program .SetupApplication() .Build(); + using (IServiceScope scope = app.Services.CreateScope()) + { + scope.ServiceProvider.GetService().Database.Migrate(); + } + if (app.Environment.IsDevelopment()) { app.UseSwagger();