Update fogw-stage.yml
This commit is contained in:
@@ -30,17 +30,17 @@ jobs:
|
|||||||
run: dotnet test ".\src\FrontOffice.BFF.WebApi\FrontOffice.BFF.WebApi.csproj" --no-restore --verbosity normal
|
run: dotnet test ".\src\FrontOffice.BFF.WebApi\FrontOffice.BFF.WebApi.csproj" --no-restore --verbosity normal
|
||||||
- name: Recycle Apppool
|
- name: Recycle Apppool
|
||||||
run: |
|
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
|
shell: powershell
|
||||||
- name: Stop Website
|
- name: Stop Website
|
||||||
run: |
|
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
|
shell: powershell
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: dotnet publish ".\src\FrontOffice.BFF.WebApi\FrontOffice.BFF.WebApi.csproj" -c Release -o publish
|
run: dotnet publish ".\src\FrontOffice.BFF.WebApi\FrontOffice.BFF.WebApi.csproj" -c Release -o publish
|
||||||
- name: Copy Publish To IIS Directory
|
- 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
|
- name: Start Website
|
||||||
run: |
|
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
|
shell: powershell
|
||||||
|
|||||||
Reference in New Issue
Block a user