1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

github: Save generated zip file in current working directory

Artifact files can't have directory separators in the file names
This commit is contained in:
Mark Pizzolato 2022-12-04 08:47:14 -10:00
parent 79ebf4f593
commit 11247d2db4

View File

@ -26,11 +26,9 @@ for /F "usebackq tokens=3" %%i in (`findstr/C:"#define SIM_PATCH" sim_rev.h`) do
for /F "usebackq tokens=3" %%i in (`findstr/C:"#define SIM_VERSION_MODE" sim_rev.h`) do set _SIM_VERSION_MODE=-%%~i
if "%_SIM_PATCH%" equ "-0" set _SIM_PATCH=
set _ZipName=simh-%_SIM_MAJOR%.%_SIM_MINOR%%_SIM_PATCH%%_SIM_VERSION_MODE%--%D_YYYY%-%D_MM%-%D_DD%-%GIT_COMMIT_ID:~0,8%.zip
set _ZipPath=BIN\NT\%_ZipName%
echo Creating Zip File: %_ZipPath%
Powershell -NoLogo -Command Compress-Archive -Force -Path "BIN\NT\Win32-Release\*.exe" -DestinationPath "%_ZipPath%"
echo Creating Zip File: %_ZipName%
Powershell -NoLogo -Command Compress-Archive -Force -Path "BIN\NT\Win32-Release\*.exe" -DestinationPath "%_ZipName%"
dir %_ZipPath%
set
echo ZIPPATH=%_ZipPath% >> %GITHUB_ENV%
echo ZIPPATH=%_ZipName% >> %GITHUB_ENV%
echo Done.
exit 0