1.0.2 - fix network settings, permissions and branding
Wydanie WGTools-Extended / release (push) Successful in 14s

This commit is contained in:
asminme committed 2026-10-30 02:14:52 +01:00
1 parent 9c23169339
commit aadc19341d
18 files changed
+241 -80

No files matched your search

+3 -1
View File
@@ -39,7 +39,9 @@ def main() -> None:
subprocess.run(['git', 'cat-file', '-e', f'HEAD:{required}'], check=True)
subprocess.run(['git', 'archive', '--format=tar.gz', f'--output={package}', 'HEAD'], check=True)
title = f'WGTools-Extended wersja {tag[1:]}'
release = request(api, 'POST', json.dumps({'tag_name': tag, 'name': title, 'body': title, 'draft': True}).encode(), 'application/json')
notes_file = Path('RELEASE_NOTES.md')
notes = notes_file.read_text(encoding='utf-8').strip() if notes_file.is_file() else title
release = request(api, 'POST', json.dumps({'tag_name': tag, 'name': title, 'body': notes or title, 'draft': True}).encode(), 'application/json')
boundary = 'wgtools' + uuid.uuid4().hex
body = (f'--{boundary}\r\nContent-Disposition: form-data; name="attachment"; filename="{package.name}"\r\nContent-Type: application/octet-stream\r\n\r\n'.encode()
+ package.read_bytes() + f'\r\n--{boundary}--\r\n'.encode())