Skip to content

Commit

Permalink
Update WinX64.yml
Browse files Browse the repository at this point in the history
Upload the zip file as an artifact
  • Loading branch information
Ruben2776 authored Sep 19, 2024
1 parent d9043b0 commit 55115fc
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/WinX64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,16 @@ jobs:
}
shell: pwsh

# Step 8: Clean up temp directory
- name: Clean up temp directory
# Step 8: Zip the output directory
- name: Zip the output
run: |
$tempPath = [System.IO.Path]::GetTempPath() + "PicView"
Start-Sleep -Seconds 2
Remove-Item -Path $tempPath -Recurse -Force
$outputPath = "${{ steps.paths.outputs.output_dir }}"
Compress-Archive -Path "$outputPath\*" -DestinationPath "$outputPath.zip"
shell: pwsh

# Step 9: Upload the zip file as an artifact
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: PicView-win-x64
path: ${{ steps.paths.outputs.output_dir }}.zip

0 comments on commit 55115fc

Please sign in to comment.