fix: ci
This commit is contained in:
parent
882ba34e47
commit
ec8cd80063
1 changed files with 1 additions and 11 deletions
|
@ -87,14 +87,6 @@ def fetch_debian_url(base_url: str, job_ids: Dict[str, str]) -> Optional[Tuple[s
|
||||||
return debian_url, debian_sha_url
|
return debian_url, debian_sha_url
|
||||||
|
|
||||||
|
|
||||||
def fetch_arch_url(base_url: str, job_ids: Dict[str, str]) -> Optional[Tuple[str, str]]:
|
|
||||||
mybase: str = f'{base_url}/jobs/{job_ids["build_archlinux"]}/artifacts/raw'
|
|
||||||
arch_sha_url: str = f'{mybase}/package/archlinux/SHA256SUMS'
|
|
||||||
arch_filename: str = fetch_single_shafile(arch_sha_url)
|
|
||||||
arch_url: str = f'{mybase}/package/archlinux/{arch_filename}'
|
|
||||||
return arch_url, arch_sha_url
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
api_token: Optional[str] = os.getenv('GITLAB_API_TOKEN')
|
api_token: Optional[str] = os.getenv('GITLAB_API_TOKEN')
|
||||||
release_tag: Optional[str] = os.getenv('CI_COMMIT_TAG')
|
release_tag: Optional[str] = os.getenv('CI_COMMIT_TAG')
|
||||||
|
@ -128,15 +120,13 @@ def main():
|
||||||
|
|
||||||
wheel_url, wheel_sha_url = fetch_wheel_url(base_url, job_ids)
|
wheel_url, wheel_sha_url = fetch_wheel_url(base_url, job_ids)
|
||||||
debian_url, debian_sha_url = fetch_debian_url(base_url, job_ids)
|
debian_url, debian_sha_url = fetch_debian_url(base_url, job_ids)
|
||||||
arch_url, arch_sha_url = fetch_arch_url(base_url, job_ids)
|
|
||||||
|
|
||||||
augmented_changelog = f'''{changelog.strip()}
|
augmented_changelog = f'''{changelog.strip()}
|
||||||
|
|
||||||
### Download
|
### Download
|
||||||
|
|
||||||
- [Python Wheel]({wheel_url}) ([sha256]({wheel_sha_url}))
|
- [Python Wheel]({wheel_url}) ([sha256]({wheel_sha_url}))
|
||||||
- [Debian Package]({debian_url}) ([sha256]({debian_sha_url}))
|
- [Debian Package]({debian_url}) ([sha256]({debian_sha_url}))'''
|
||||||
- [Arch Linux Package]({arch_url}) ([sha256]({arch_sha_url}))'''
|
|
||||||
|
|
||||||
post_body: str = json.dumps({'description': augmented_changelog})
|
post_body: str = json.dumps({'description': augmented_changelog})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue