Added publish step to dotnet
This commit is contained in:
@@ -7,12 +7,13 @@ clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
# --- BUILD & TEST STAGE ---
|
||||
- name: build-and-test
|
||||
- name: build-test-publish
|
||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||
commands:
|
||||
- dotnet build --configuration Release
|
||||
- dotnet test --configuration Release
|
||||
- dotnet restore
|
||||
- dotnet build --configuration Release --no-restore
|
||||
- dotnet test --configuration Release --no-build
|
||||
- dotnet publish --configuration Release --no-build
|
||||
|
||||
# --- PACKAGE STAGE ---
|
||||
# We build the image locally first so we can scan it BEFORE pushing
|
||||
|
||||
Reference in New Issue
Block a user