From b8dd677590acf36464f789f7919cf87307660b1a Mon Sep 17 00:00:00 2001 From: Cameron Brown Date: Sat, 31 Aug 2024 15:06:11 -0400 Subject: [PATCH] First test of github workflow upload --- .github/workflows/upload.yaml | 31 +++++++++++++++++++++++++++++++ index.html | 13 +++++++------ 2 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/upload.yaml diff --git a/.github/workflows/upload.yaml b/.github/workflows/upload.yaml new file mode 100644 index 0000000..4ac7879 --- /dev/null +++ b/.github/workflows/upload.yaml @@ -0,0 +1,31 @@ +--- +name: Upload files to mil.ufl.edu + +# yamllint disable-line rule:truthy +on: + push: + branches: + - add-upload + +jobs: + upload: + runs-on: self-hosted + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Upload files to web server + run: | + # Install lftp + sudo apt-get install -y lftp + # Upload web server contents + lftp -u mil,${{ secrets.MIL_UFL_SFTP_PASS }} \ + -p ${{ secrets.MIL_UFL_SFTP_PORT }} sftp://mil.ufl.edu << EOF + mirror -c \ + --exclude='^\..*$' \ + --only-newer --ignore-time \ + -R --parallel \ + . \ + htdocs + exit + EOF diff --git a/index.html b/index.html index bf1f611..35102a5 100755 --- a/index.html +++ b/index.html @@ -233,12 +233,13 @@ - The Machine Intelligence Laboratory (MIL) provides a - synergistic environment dedicated to the study and - development of intelligent, autonomous robots. The - faculty and students associated with the laboratory - conduct research in the theory and realization of - machine intelligence covering topics such as machine + hi from cameron :) The Machine Intelligence + Laboratory (MIL) provides a synergistic environment + dedicated to the study and development of + intelligent, autonomous robots. The faculty and + students associated with the laboratory conduct + research in the theory and realization of machine + intelligence covering topics such as machine learning, real-time computer vision, statistical modeling, robot kinematics, autonomous vehicles, teleoperation and human interfaces, robot and