Aggiornamento staging #1

Merged
Alessio merged 25 commits from main into staging 2026-01-24 17:31:13 +01:00
Showing only changes of commit a50b295c59 - Show all commits
+36 -8
View File
@@ -101,19 +101,47 @@ jobs:
steps: steps:
- name: Download and extract repository - name: Download and extract repository
run: | run: |
echo Downloading repository from GitHub... echo ===== Downloading repository =====
curl -L -o repo.zip https://github.com/${{ github.repository }}/archive/refs/heads/${{ github.ref_name }}.zip curl -L -o repo.zip https://github.com/${{ github.repository }}/archive/refs/heads/${{ github.ref_name }}.zip
echo Extracting archive... if errorlevel 1 (
echo Failed to download repository
exit /b 1
)
echo ===== Extracting archive =====
tar -xf repo.zip tar -xf repo.zip
echo Moving files... if errorlevel 1 (
for /d %%d in (*) do ( echo Failed to extract archive
if exist "%%d\.gitignore" ( exit /b 1
xcopy "%%d\*" . /E /H /Y /Q
rmdir "%%d" /S /Q
) )
echo ===== Finding extracted folder =====
dir /B /AD
echo ===== Moving files to current directory =====
REM GitHub creates folder with format: repo-name-branch
REM Find first directory and copy its contents
for /d %%i in (*) do (
echo Found directory: %%i
echo Copying contents from %%i to current directory...
robocopy "%%i" . /E /MOVE /NFL /NDL /NJH /NJS
goto :extracted
) )
:extracted
echo ===== Cleaning up =====
del repo.zip del repo.zip
echo Repository ready
echo ===== Verifying files =====
echo Current directory contents:
dir /B
if exist Dockerfile.windows (
echo SUCCESS: Dockerfile.windows found!
) else (
echo ERROR: Dockerfile.windows not found!
exit /b 1
)
shell: cmd shell: cmd
- name: Debug - Verify files - name: Debug - Verify files