Update fogw-stage.yml

This commit is contained in:
MeysamMoghaddam
2025-10-07 19:58:03 +03:30
parent cddca2db5f
commit 0749578aec

View File

@@ -30,17 +30,17 @@ jobs:
run: dotnet test ".\src\FrontOffice.BFF.WebApi\FrontOffice.BFF.WebApi.csproj" --no-restore --verbosity normal
- name: Recycle Apppool
run: |
& "C:\Windows\System32\inetsrv\appcmd.exe" recycle apppool /apppool.name:bogw.kbs1.ir
& "C:\Windows\System32\inetsrv\appcmd.exe" recycle apppool /apppool.name:fogw.kbs1.ir
shell: powershell
- name: Stop Website
run: |
& "C:\Windows\System32\inetsrv\appcmd.exe" stop site /site.name:bogw.kbs1.ir
& "C:\Windows\System32\inetsrv\appcmd.exe" stop site /site.name:fogw.kbs1.ir
shell: powershell
- name: Publish
run: dotnet publish ".\src\FrontOffice.BFF.WebApi\FrontOffice.BFF.WebApi.csproj" -c Release -o publish
- name: Copy Publish To IIS Directory
run: Get-ChildItem -Path "publish\*" | Copy-Item -Destination "E:\kbs1.ir\bogw.kbs1.ir\" -Recurse -Force
run: Get-ChildItem -Path "publish\*" | Copy-Item -Destination "E:\kbs1.ir\fogw.kbs1.ir\" -Recurse -Force
- name: Start Website
run: |
& "C:\Windows\System32\inetsrv\appcmd.exe" start site /site.name:bogw.kbs1.ir
& "C:\Windows\System32\inetsrv\appcmd.exe" start site /site.name:fogw.kbs1.ir
shell: powershell