Update .gitea/workflows/copy_documentation.yml
All checks were successful
Copy Documentation to webserver / copy-documentation (push) Successful in 22s
All checks were successful
Copy Documentation to webserver / copy-documentation (push) Successful in 22s
This commit is contained in:
parent
b87f40f43e
commit
d4727904d7
@ -1,31 +1,31 @@
|
|||||||
name: Copy Documentation to webserver
|
name: Copy Documentation to webserver
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
copy-documentation:
|
copy-documentation:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y rsync # Install required packages
|
apt-get install -y rsync # Install required packages
|
||||||
|
|
||||||
- name: Ensure destination exists
|
- name: Ensure destination exists
|
||||||
run: |
|
run: |
|
||||||
sudo mkdir -p /web/nanobrain
|
sudo mkdir -p /web/nanobrain
|
||||||
sudo chown -R $USER:$USER /web/nanobrain
|
sudo chown -R $USER:$USER /web/nanobrain
|
||||||
|
|
||||||
- name: Copy html folder
|
- name: Copy html folder
|
||||||
run: |
|
run: |
|
||||||
sudo rsync -a --delete Documentation/html/ /web/nanobrain
|
rsync -a --delete Documentation/html/ /web/nanobrain
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user