From 7fdbc439f7a2bdf3071a2e51d15085cf962f09bb Mon Sep 17 00:00:00 2001 From: Akis Kesoglou Date: Wed, 12 Jul 2023 11:20:43 +0300 Subject: [PATCH] Fix Publish action on Windows --- .github/actions/publish/action.yml | 7 +++++++ .github/actions/test/action.yml | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 6e19a250..bf32eeda 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -31,10 +31,17 @@ runs: path: ${{ runner.temp }} - name: Extract custom source artifact + if: runner.os != 'Windows' shell: pwsh working-directory: . run: tar -xf ${{ runner.temp }}/custom.tgz + - name: Extract custom source artifact + if: runner.os == 'Windows' + shell: pwsh + working-directory: . + run: C:\"Program Files"\Git\usr\bin\tar.exe --force-local -xf ${{ runner.temp }}\custom.tgz + - name: Setup Node.js uses: actions/setup-node@v3 with: diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 647c91ee..39ecaabd 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -47,9 +47,15 @@ runs: ELECTRON_NO_ATTACH_CONSOLE: true - name: Compress custom source + if: runner.os != 'Windows' shell: pwsh run: tar -acf ${{ runner.temp }}/custom.tgz . + - name: Compress custom source + if: runner.os == 'Windows' + shell: pwsh + run: C:\"Program Files"\Git\usr\bin\tar.exe --force-local -acf ${{ runner.temp }}\custom.tgz . + - name: Upload custom artifact uses: actions/upload-artifact@v3 with: