Some checks failed
Copy Documentation to webserver / copy-documentation (push) Failing after 5m21s
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: Copy Documentation to webserver
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
copy-documentation:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Pause for debug
|
|
run: |
|
|
echo "Debug container: sleeping for 300s"
|
|
sleep 300
|
|
- name: Install Dependencies
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y rsync # Install required packages
|
|
|
|
- name: Check volume
|
|
run: |
|
|
mount | grep /web/nanobrain || true
|
|
ls -la /web || true
|
|
cat /proc/self/mounts | grep nanobrain || true
|
|
ls -la /web/nanobrain; id; stat -c "%u:%g %n" /volume1/web/passer_life/documentation/nanobrain
|
|
|
|
- name: Ensure destination exists
|
|
run: |
|
|
chown -R $USER:$USER /web/nanobrain
|
|
|
|
|
|
- name: Copy html folder
|
|
run: |
|
|
find / -path '*/web/nanobrain/*'
|
|
rsync -av --delete Documentation/html/ /web/nanobrain 2>&1
|
|
echo $HOSTNAME
|
|
ps aux | head
|