Uploading files to nightlies.apache.org:

WebDAV / Curl

nightlies.apache.org uses WebDAV for content authoring. You can make use of the following simple commands to manage your files:

(Substitute yourasfid with your own ASF username...)

Creating a project directory for project foo

curl -u yourasfid -X MKCOL 'https://nightlies.apache.org/foo'

Uploading /home/me/demo.txt to project foo's directory

curl -u yourasfid -T /home/me/demo.txt 'https://nightlies.apache.org/foo/'

Removing a file from foo's directory

curl -u yourasfid -X DELETE 'https://nightlies.apache.org/foo/demo.txt'

Via CI/CD

You can also use Jenkins or Buildbot to publish nightly tarballs, snapshots, javadocs, apidocs, website snapshot versions, jars etc to nightlies.apache.org