Refactor release script to be more modular

This commit is contained in:
Willy-JL
2023-03-29 14:04:43 +01:00
parent 6e903cd40c
commit f6679cc8d8
6 changed files with 75 additions and 27 deletions

12
.github/workflow_data/webupdater.py vendored Normal file
View File

@@ -0,0 +1,12 @@
import nextcloud_client
import os
if __name__ == "__main__":
client = nextcloud_client.Client(os.environ["NC_HOST"])
client.login(os.environ["NC_USER"], os.environ["NC_PASS"])
file = os.environ["NC_FILE"]
path = os.environ["NC_PATH"] + file
client.put_file(path, file)
share_link = client.share_file_with_link(path).get_link()
download_link = share_link.rstrip("/") + "/download/" + file
print(download_link, end="")