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
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user