Skip to content

Commit

Permalink
Merge pull request #142 from CIAT-DAPA/devconfig
Browse files Browse the repository at this point in the history
add restore
  • Loading branch information
santiago123x authored Jun 7, 2023
2 parents 1470518 + 6f161a6 commit 18fe96d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
run: mkdir -p ./publish/WebApi
- name: Create Output test Directory WebApi
run: mkdir -p ./TestResults/WebApi
- name: Remove Previous Publish Folder
run: rm -rf ./publish/WebApi/*
- name: Remove Previous TestResults Folder
run: rm -rf ./TestResults/WebApi/*

- name: Build WebApi
run: dotnet build src/$PROJECT_NAME.WebAPI/$PROJECT_NAME.WebAPI.csproj --configuration Release
Expand Down Expand Up @@ -66,6 +70,10 @@ jobs:
run: mkdir -p ./publish/WebAdmin
- name: Create Output test Directory WebAdmin
run: mkdir -p ./TestResults/WebAdmin
- name: Remove Previous Publish Folder
run: rm -rf ./publish/WebAdmin/*
- name: Remove Previous TestResults Folder
run: rm -rf ./TestResults/WebAdmin/*

- name: Build WebAdmin
run: dotnet build src/$PROJECT_NAME.WebAdmin/$PROJECT_NAME.WebAdmin.csproj --configuration Release
Expand Down Expand Up @@ -119,10 +127,14 @@ jobs:
dotnet-version: 2.2.X

#Publish WebAdmin
- name: Publish $PROJECT_NAME
- name: Restore NuGet Packages
run: dotnet restore src/$PROJECT_NAME.WebAdmin/$PROJECT_NAME.WebAdmin.csproj
- name: Publish WebAdmin
run: dotnet publish src/$PROJECT_NAME.WebAdmin/$PROJECT_NAME.WebAdmin.csproj --configuration Release -o ./publish/WebAdmin --no-restore
#Publish WebApi
- name: Publish $PROJECT_NAME
- name: Restore NuGet Packages
run: dotnet restore src/$PROJECT_NAME.WebAPI/$PROJECT_NAME.WebAPI.csproj
- name: Publish WebApi
run: dotnet publish src/$PROJECT_NAME.WebAPI/$PROJECT_NAME.WebAPI.csproj --configuration Release -o ./publish/WebApi --no-restore

# API Zip
Expand Down

0 comments on commit 18fe96d

Please sign in to comment.