Skip to content

Commit

Permalink
Fix Publish action on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dfunckt committed Jul 12, 2023
1 parent 9410669 commit 5f37fb4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5f37fb4

Please sign in to comment.