-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.03 KB
/
upload.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: Upload files to mil.ufl.edu
# yamllint disable-line rule:truthy
on:
push:
branches:
- add-upload
jobs:
upload:
runs-on: self-hosted
timeout-minutes: 4
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 -c "open -u mil,${{ secrets.MIL_UFL_SFTP_PASS }}
-p ${{ secrets.MIL_UFL_SFTP_PORT }}
sftp://mil.ufl.edu;
ls"
lftp -c "open -u mil,${{ secrets.MIL_UFL_SFTP_PASS }}
-p ${{ secrets.MIL_UFL_SFTP_PORT }}
sftp://mil.ufl.edu;
mirror -c
--include='.*'
--exclude='^\..*$'
--only-newer --ignore-time
-R --parallel
.
htdocs"