Skip to content

Commit

Permalink
fix(build.yml): Use tar for unix-like system
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 9, 2024
1 parent 75441e7 commit 882ffc7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,25 @@ jobs:
mv COPYING dist
mv README.md dist
- name: Uploading...
uses: actions/upload-artifact@v3
- name: Change permissions (Unix)
if: matrix.target == 'linux-arm64' || matrix.target == 'linux-x64' || matrix.target == 'macos-arm64' || matrix.target == 'macos-x64'
run: |
chmod -R 777 ./dist
- name: Tar files
run: |
tar czf eask_${{ env.VERSION }}_${{ matrix.target }}.tar -C dist .
- name: Uploading... (Unix)
if: matrix.target == 'linux-arm64' || matrix.target == 'linux-x64' || matrix.target == 'macos-arm64' || matrix.target == 'macos-x64'
uses: actions/upload-artifact@v4
with:
name: eask_${{ env.VERSION }}_${{ matrix.target }}
path: eask_${{ env.VERSION }}_${{ matrix.target }}.tar

- name: Uploading... (Windows)
if: matrix.target == 'win-arm64' || matrix.target == 'win-x64'
uses: actions/upload-artifact@v4
with:
name: eask_${{ env.VERSION }}_${{ matrix.target }}
path: dist
Expand Down

0 comments on commit 882ffc7

Please sign in to comment.