diff --git a/.github/workflows/preview_ci.yml b/.github/workflows/preview_ci.yml index 708a7a1c21c..961d8bf9b9a 100644 --- a/.github/workflows/preview_ci.yml +++ b/.github/workflows/preview_ci.yml @@ -62,9 +62,9 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Deploy preview docker image for linux and windows - shell: pwsh + - name: Deploy preview docker images if: matrix.os == 'ubuntu-latest' + shell: pwsh run: | Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data -Recurse | Remove-Item -Recurse -Confirm:$false Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data_Tests -Recurse | Remove-Item -Recurse -Confirm:$false diff --git a/.github/workflows/release_ci.yml b/.github/workflows/release_ci.yml index 4e91ce444e4..3d3d1c312e3 100644 --- a/.github/workflows/release_ci.yml +++ b/.github/workflows/release_ci.yml @@ -73,9 +73,9 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Deploy release docker image for linux and windows - shell: pwsh + - name: Deploy release docker images if: matrix.os == 'ubuntu-latest' + shell: pwsh run: | Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data -Recurse | Remove-Item -Recurse -Confirm:$false Get-ChildItem ./src/OrchardCore.Cms.Web/App_Data_Tests -Recurse | Remove-Item -Recurse -Confirm:$false