mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 17:11:14 +00:00
fix attachments names
This commit is contained in:
parent
d4e82a1894
commit
9fc3c4cb67
2
ci.py
2
ci.py
|
@ -79,7 +79,7 @@ def gitea_upload_attachment(file):
|
|||
id = gitea_get_release_id()
|
||||
url = f"{GITEA_HOST_URL}/api/v1/repos/{GITEA_REPO_FULL}/releases/{id}/assets"
|
||||
token = os.environ.get("GITEA_RELEASE_TOKEN")
|
||||
params = {"access_token": f"{token}", "name": f"{file}"}
|
||||
params = {"access_token": f"{token}", "name": f"{os.path.basename(file)}"}
|
||||
files = {"attachment": open(f"{file}", "br")}
|
||||
|
||||
request = requests.post(url, params=params, files=files)
|
||||
|
|
Loading…
Reference in a new issue