Skip to content

Commit

Permalink
Explicitly set Release mode in build
Browse files Browse the repository at this point in the history
  • Loading branch information
Loupeznik authored Jan 28, 2024
1 parent daa634e commit a39bf13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
- name: Install dotnet-ef
run: dotnet tool install --global dotnet-ef
- name: Build
run: dotnet build --no-restore
run: dotnet build --no-restore --configuration Release
- name: Create migration bundle
run: |
export PATH="$PATH:/root/.dotnet/tools" && \
dotnet ef migrations bundle --startup-project DZarsky.ToDoAppTemplate.Api/DZarsky.ToDoAppTemplate.Api.csproj \
--project DZarsky.ToDoAppTemplate.Data/DZarsky.ToDoAppTemplate.Data.csproj --self-contained -r linux-x64 \
--output publish/efbundle
- name: Publish
run: dotnet publish --no-restore --output publish/app
run: dotnet publish --no-restore --configuration Release --output publish/app
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit a39bf13

Please sign in to comment.