Skip to content

Commit

Permalink
Merge pull request #178 from evidence-dev/hughess-patch-1
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
hughess authored Oct 18, 2024
2 parents 7b480c6 + 354d6c0 commit 210da74
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,24 @@ jobs:
- name: Install dependencies
run: npm install

- name: Replace symlinks with actual files (Unix)
if: runner.os != 'Windows'
run: |
find node_modules/.bin -type l -print0 | while IFS= read -r -d '' link; do
target=$(readlink "$link")
rm "$link"
cp "$target" "$link"
done
- name: Replace symlinks with actual files (Windows)
if: runner.os == 'Windows'
run: |
Get-ChildItem -Path node_modules\.bin -Link | ForEach-Object {
$Target = (Get-Item $_.FullName).Target
Remove-Item $_.FullName
Copy-Item $Target $_.FullName
}
- name: Zip files (Windows)
if: runner.os == 'Windows'
run: powershell.exe -Command "Compress-Archive -Path . -DestinationPath evidence-${{ matrix.os }}-${{ matrix.arch }}-node${{ matrix.node }}.zip -Force"
Expand Down

0 comments on commit 210da74

Please sign in to comment.