parent
30358e0526
commit
6e217c92fa
|
@ -1,8 +1,10 @@
|
|||
name: Generate documentation
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
push:
|
||||
branches: master
|
||||
# schedule:
|
||||
# - cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
|
@ -14,13 +16,13 @@ jobs:
|
|||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install ncftp, kicad, doxygen, graphviz, and yq
|
||||
- name: Install prerequisite software
|
||||
run: |
|
||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
|
||||
sudo add-apt-repository ppa:rmescandon/yq
|
||||
sudo add-apt-repository ppa:kicad/kicad-5.1-releases
|
||||
sudo apt-get update
|
||||
sudo apt-get install ncftp kicad doxygen graphviz yq
|
||||
sudo apt-get install ncftp kicad doxygen graphviz yq sshpass
|
||||
|
||||
- name: Set FTP variables
|
||||
env:
|
||||
|
|
|
@ -7,7 +7,9 @@ bash misc/jenkins/InteractiveHtmlBom/run.sh
|
|||
|
||||
if [ -n "$RUSEFI_FTP_SERVER" ]; then
|
||||
echo "Uploading IBOMs"
|
||||
ncftpput -R -m -u "$RUSEFI_DOXYGEN_FTP_USER" -p "$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER" /ibom hardware/ibom/*
|
||||
tar -cvzf - -C hardware ibom |\
|
||||
sshpass -p $RUSEFI_DOXYGEN_FTP_PASS ssh -o StrictHostKeyChecking=no $RUSEFI_DOXYGEN_FTP_USER@$RUSEFI_FTP_SERVER \
|
||||
"(tar -xzvf - -C ~)"
|
||||
fi
|
||||
|
||||
pwd
|
||||
|
@ -20,7 +22,9 @@ doxygen || { echo "doxygen run FAILED"; exit 1; }
|
|||
cd ../doxygen
|
||||
if [ -n "$RUSEFI_FTP_SERVER" ]; then
|
||||
echo "Uploading Doxygen"
|
||||
ncftpput -R -m -u "$RUSEFI_DOXYGEN_FTP_USER" -p "$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER" /html html/*
|
||||
tar -cvzf - html |\
|
||||
sshpass -p $RUSEFI_DOXYGEN_FTP_PASS ssh -o StrictHostKeyChecking=no $RUSEFI_DOXYGEN_FTP_USER@$RUSEFI_FTP_SERVER \
|
||||
"(tar -xzvf - -C ~)"
|
||||
fi
|
||||
[ $? -eq 0 ] || { echo "upload FAILED"; exit 1; }
|
||||
|
||||
|
@ -48,6 +52,8 @@ done
|
|||
|
||||
if [ -n "$RUSEFI_FTP_SERVER" ]; then
|
||||
echo "Uploading Pinouts"
|
||||
ncftpput -R -m -u "$RUSEFI_DOXYGEN_FTP_USER" -p "$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER" /pinouts pinouts/*
|
||||
tar -cvzf - pinouts |\
|
||||
sshpass -p $RUSEFI_DOXYGEN_FTP_PASS ssh -o StrictHostKeyChecking=no $RUSEFI_DOXYGEN_FTP_USER@$RUSEFI_FTP_SERVER \
|
||||
"(tar -xzvf - -C ~)"
|
||||
fi
|
||||
[ $? -eq 0 ] || { echo "upload FAILED"; exit 1; }
|
||||
|
|
Loading…
Reference in New Issue