Skip to content

Commit

Permalink
add compress step
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Jun 1, 2023
1 parent 73979d5 commit 114c7e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ jobs:
- name: Package
run: .\scripts\Package.bat $env:UNREAL_PATH (Get-Location).Path $env:PROJECT_NAME $env:TARGET_NAME $env:PACKAGE_FOLDER

- name: Compress package
run: .\scripts\CompressPackage.bat (Get-Location).Path $env:PACKAGE_FOLDER

- name: Archive package
uses: actions/upload-artifact@v3
if: always()
with:
if-no-files-found: ignore
name: win64-build
path: |
${{env.PACKAGE_FOLDER}}
${{env.PACKAGE_FOLDER}}.zip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ TestResults/*

# Package Results
PackageResults/*
PackageResults.zip
4 changes: 4 additions & 0 deletions scripts/CompressPackage.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set projectLocation=%~1
set packageFolder=%~2

powershell -Command "Compress-Archive -Path '%projectLocation%\%packageFolder%\*' -DestinationPath '%projectLocation%\%packageFolder%.zip'"

0 comments on commit 114c7e6

Please sign in to comment.