-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix multiple bugs in do_hcfiles script; fixed multiple bugs in doHCFI…
…LES workflow
- Loading branch information
Showing
2 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,8 +75,11 @@ jobs: | |
env: | ||
GH_TOKEN: ${{ secrets.MU_TOKEN }} | ||
|
||
- name: Install vnc | ||
run: sudo apt-get update && sudo apt-get install -y tightvncserver | ||
- name: Install vnc & ghostscript (ps2pdf) | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y tightvncserver | ||
sudo apt-get install -y ghostscript | ||
- name: Build apps.sysout | ||
run: | | ||
|
@@ -98,7 +101,7 @@ jobs: | |
eval $(ssh-agent) | ||
ssh-add - <<< "${SSH_KEY}" | ||
# set destination directory on files.interlisp.org | ||
dest=/srv/oio/source | ||
dest=/srv/oio/files/source | ||
# Push tar file up to files.interlisp.org | ||
batchfile=/tmp/batch-$$ | ||
echo "-put ${tarfile} ${dest}.tgz" > ${batchfile} | ||
|
@@ -108,9 +111,10 @@ jobs: | |
echo "rm -rf ${dest}.new" > ${scriptfile} | ||
echo "mkdir -p ${dest}.new" >> ${scriptfile} | ||
echo "tar -C ${dest}.new -x -z -f ${dest}.tgz" >> ${scriptfile} | ||
echo "rm -f ${dest}.tgz" >> ${scriptfile} | ||
echo "rm -rf ${dest}.oldold" >> ${scriptfile} | ||
echo "mv ${dest}.old ${dest}.oldold" >> ${scriptfile} | ||
echo "mv ${dest} ${dest}.old" >> ${scriptfile} | ||
echo "if [ -e ${dest}.old ]; then mv ${dest}.old ${dest}.oldold; fi" >> ${scriptfile} | ||
echo "if [ -e ${dest} ]; then mv ${dest} ${dest}.old; fi" >> ${scriptfile} | ||
echo "mv ${dest}.new ${dest}" >> ${scriptfile} | ||
ssh -aTxo BatchMode=yes [email protected] /bin/sh -s < ${scriptfile} | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters