Commit e8f175bc authored by ale's avatar ale

Show example of how to upload a static website from Gitlab CI

parent 46f91a40
Pipeline #5391 passed with stages
in 2 minutes and 38 seconds
......@@ -196,3 +196,28 @@ You can connect with the **'WebDAV Nav'** App (free or pro version), which you w
4. Click "Save".
5. Now you can see a window with the name you've chosen: click on it, and if you visualize a window with light-blue folders, it means you
are connected.
Gitlab CI
If you're using a Gitlab instance to manage the sources of your static
website, you might find it convenient to automatically upload new
versions of the site on every change. You can use the
tool to upload your website, or the result of your site rendering
process, with a `.gitlab-ci.yml` file such as the following:
stage: deploy
- ./
- pip3 install git+
- webdav-upload --user="$WEBDAV_USER" --password="$WEBDAV_PASSWORD" --url "$WEBDAV_USER/" output html-mywebsite
In the above example the site is built with the hypothetical
** script, then the contents of the *output* directory
are uploaded to the *html-mywebsite* directory on the server, in the
WebDAV space belonging to WEBDAV_USER.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment