Skip to content

Commit

Permalink
Merge pull request #1411 from virtualcell/help-generation-fix
Browse files Browse the repository at this point in the history
Help Generation Fix
  • Loading branch information
AvocadoMoon authored Jan 8, 2025
2 parents 74775bb + 2c5c74d commit 9d0af7a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/webhelp-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: Deploy Web Help Documentation
runs-on: ubuntu-20.04
steps:
- name: checkout tag
- name: checkout repository
uses: actions/checkout@v4

- name: setup global environment variables
Expand Down Expand Up @@ -35,21 +35,24 @@ jobs:
- name: Deploy Web Help
run: |
set -ux
webhelp_local_dir="~/work/vcell/vcell/vcell-client/target/classes/vcellDoc"
ssh-keyscan $VCELL_MANAGER_NODE >> ~/.ssh/known_hosts
webhelp_local_dir="vcell-client/target/classes/vcellDoc"
ssh_user=${{ secrets.CD_FULL_USER }}
webhelp_deploy_dir="${VCELL_WEBHELP_REMOTE_DIR}"
manager_node="${VCELL_MANAGER_NODE}"
if [[ -z "${webhelp_deploy_dir}" || -z "${manager_node}" ]]; then
echo "Error: VCELL_WEBHELP_REMOTE_DIR or manager_node is not set."
exit 1;
fi
if ! rsync -a -vvv "${webhelp_local_dir}/topics" "$ssh_user@$manager_node:${webhelp_deploy_dir}";
if ! rsync -a "${webhelp_local_dir}/topics" "$ssh_user@$manager_node:${webhelp_deploy_dir}";
then
echo "failed to copy html files in topic directory to webhelp deploy directory";
exit 1;
fi
if ! scp "${webhelp_local_dir}/VCellHelpTOC.html" "$ssh_user@$manager_node:${webhelp_deploy_dir}/index.html";
then
echo "failed to index.html to webhelp deploy directory";
exit 1;
fi
- name: Setup tmate session 3
Expand Down

0 comments on commit 9d0af7a

Please sign in to comment.