Skip to content

Commit

Permalink
finalize clean actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-YousefiTelori committed Jan 12, 2024
1 parent 8f5c219 commit 2fbf1c1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dotnet-windows-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
WHITELABEL_PID=$!
echo "Started WhiteLabel Service with PID $WHITELABEL_PID"
cd ..
shell: bash
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln
- name: Build
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/dotnet-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,10 @@ jobs:
run: dotnet build ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln --no-restore
- name: Test
run: dotnet test ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln --no-build --verbosity normal

- name: Cleanup
if: always()
run: echo "Shutting down Authentication Service with PID $AUTH_PID"
kill $AUTH_PID echo "Authentication Service shutdown failed"
echo "Shutting down WhiteLabel Service with PID $WHITELABEL_PID"
kill $WHITELABEL_PID echo "WhiteLabel Service shutdown failed"
2 changes: 2 additions & 0 deletions .github/workflows/nuget-push-public-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
WHITELABEL_PID=$!
echo "Started WhiteLabel Service with PID $WHITELABEL_PID"
cd ..
shell: bash
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln
- name: Build
Expand All @@ -40,6 +41,7 @@ jobs:
run: dotnet pack ./src/CSharp/EasyMicroservices.IdentityMicroservice.Client.sln --output nupkgs
- name: Publish the package to NuGet.org
run: dotnet nuget push nupkgs\*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate

- name: Cleanup
if: always()
run: echo "Shutting down Authentication Service with PID $AUTH_PID"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nuget-push-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
WHITELABEL_PID=$!
echo "Started WhiteLabel Service with PID $WHITELABEL_PID"
cd ..
shell: bash
- name: Restore dependencies
run: dotnet restore ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln
- name: Build
Expand All @@ -40,6 +41,7 @@ jobs:
run: dotnet pack ./src/CSharp/EasyMicroservices.IdentityMicroservice.sln --output nupkgs
- name: Publish the package to NuGet.org
run: dotnet nuget push nupkgs\*.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate

- name: Cleanup
if: always()
run: echo "Shutting down Authentication Service with PID $AUTH_PID"
Expand Down

0 comments on commit 2fbf1c1

Please sign in to comment.