Skip to content

Commit

Permalink
Revert "modified batch script to sent json files to s3 before zipping"
Browse files Browse the repository at this point in the history
This reverts commit 4f8610f.
  • Loading branch information
ksuchitra532 committed Apr 23, 2024
1 parent 4f8610f commit 2f82a55
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions build_robohelp_gh.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@echo off
setlocal enabledelayedexpansion
rem experimental build
if "%WORKSPACE%" == "" set WORKSPACE=%GITHUB_WORKSPACE%
if "%BUILD_NUMBER%" == "" set BUILD_NUMBER=999
Expand Down Expand Up @@ -90,28 +89,5 @@ type "%basedir%SupportFiles\layout_fix_append.css" >> "%DESTDIR%\RoboHelp\templa

@REM rem ************************************************** ZIP up the output
pushd %DESTDIR%\RoboHelp

rem Use git command to get symbolic ref for remote origin/HEAD
for /f "delims=" %%A in ('git symbolic-ref refs/remotes/origin/HEAD 2^>nul') do (
set "symbolic_ref=%%A"
)
rem If symbolic_ref variable is set (i.e., command was successful)
if /I "!branch_name!"=="develop" (
echo Branch is develop - Choose BETA
aws s3 cp helpdocs_keywords.json s3://manual-json-files/Beta/helpdocs_keywords.json
aws s3 cp helpdocs_tags.json s3://manual-json-files/Beta/helpdocs_tags.json
) else if /I "!branch_name!"=="main-lts" (
echo Branch is main-lts - Choose LTS
aws s3 cp helpdocs_keywords.json s3://manual-json-files/LTS/helpdocs_keywords.json
aws s3 cp helpdocs_tags.json s3://manual-json-files/LTS/helpdocs_tags.json
) else (
echo Branch is not develop or main-lts - Choose GREEN
aws s3 cp helpdocs_keywords.json s3://manual-json-files/Green/helpdocs_keywords.json
aws s3 cp helpdocs_tags.json s3://manual-json-files/Green/helpdocs_tags.json
)
) else (
echo Error: Unable to retrieve symbolic ref for remote origin/HEAD
)

7z a YoYoStudioRoboHelp.zip . -r
popd

0 comments on commit 2f82a55

Please # to comment.