Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomyfan committed Feb 19, 2024
1 parent 837fdcd commit 637c49d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ jobs:
shell: pwsh
run: |
$isWin = "${{ matrix.os }}".StartsWith("windows-")
$archivePath = $isWin ? ".\target\${{ matrix.target }}\release\als.${{ matrix.target }}.zip" : "./target/${{ matrix.target }}/release/als.${{ matrix.target }}.tar.gz"
Move-Item -Path $($isWin ? ".\target\${{ matrix.target }}\release\als.exe" : "./target/${{ matrix.target }}/release/als") -Destination .
echo "ARCHIVE_PATH=$archivePath" >> $env:GITHUB_ENV
$globArchivePath = $isWin ? "./als.${{ matrix.target }}.zip" : "./als.${{ matrix.target }}.tar.gz"
echo "ARCHIVE_PATH=$globArchivePath" >> $env:GITHUB_ENV
if ($isWin) {
Compress-Archive -Path .\target\${{ matrix.target }}\release\als.exe -DestinationPath $archivePath
Compress-Archive -Path .\als.exe -DestinationPath -DestinationPath .\als.${{ matrix.target }}.zip
} else {
tar -czf $archivePath ./target/${{ matrix.target }}/release/als
tar -czf ./als.${{ matrix.target }}.tar.gz ./als
}
- name: List archive
Expand Down

0 comments on commit 637c49d

Please sign in to comment.