Fix release.py script

This commit is contained in:
s3lph 2021-09-28 01:59:53 +02:00
parent 5fbb658651
commit 70896ec9eb
2 changed files with 3 additions and 3 deletions

View file

@ -85,8 +85,8 @@ build_debian:
- find easywks -type d -exec chmod 755 {} \;
- chmod +x easywks/usr/bin/easywks easywks/DEBIAN/postinst easywks/DEBIAN/prerm easywks/DEBIAN/postrm
- dpkg-deb --build easywks
- mv easywks.deb "easywks_${EASTWKS_VERSION}-1_all.deb"
- sudo -u nobody lintian "easywks_${EASTWKS_VERSION}-1_all.deb"
- mv easywks.deb "easywks_${EASYWKS_VERSION}-1_all.deb"
- sudo -u nobody lintian "easywks_${EASYWKS_VERSION}-1_all.deb"
- sha256sum *.deb > SHA256SUMS
artifacts:
paths:

View file

@ -78,7 +78,7 @@ def fetch_wheel_url(base_url: str, project_id: str, job_ids: Dict[str, str], api
def fetch_debian_url(base_url: str, project_id: str, job_ids: Dict[str, str], api_token: str) -> Optional[Tuple[str, str]]:
mybase: str = f'{base_url}/jobs/{job_ids["build_wheel"]}/artifacts/raw'
mybase: str = f'{base_url}/jobs/{job_ids["build_debian"]}/artifacts/raw'
debian_sha_url: str = f'https://gitlab.com/api/v4/projects/{project_id}/jobs/{job_ids["build_debian"]}'\
'/artifacts/package/debian/SHA256SUMS'
debian_filename: str = fetch_single_shafile(debian_sha_url, api_token)