Fix release.py script
This commit is contained in:
parent
5fbb658651
commit
70896ec9eb
2 changed files with 3 additions and 3 deletions
|
@ -85,8 +85,8 @@ build_debian:
|
||||||
- find easywks -type d -exec chmod 755 {} \;
|
- find easywks -type d -exec chmod 755 {} \;
|
||||||
- chmod +x easywks/usr/bin/easywks easywks/DEBIAN/postinst easywks/DEBIAN/prerm easywks/DEBIAN/postrm
|
- chmod +x easywks/usr/bin/easywks easywks/DEBIAN/postinst easywks/DEBIAN/prerm easywks/DEBIAN/postrm
|
||||||
- dpkg-deb --build easywks
|
- dpkg-deb --build easywks
|
||||||
- mv easywks.deb "easywks_${EASTWKS_VERSION}-1_all.deb"
|
- mv easywks.deb "easywks_${EASYWKS_VERSION}-1_all.deb"
|
||||||
- sudo -u nobody lintian "easywks_${EASTWKS_VERSION}-1_all.deb"
|
- sudo -u nobody lintian "easywks_${EASYWKS_VERSION}-1_all.deb"
|
||||||
- sha256sum *.deb > SHA256SUMS
|
- sha256sum *.deb > SHA256SUMS
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -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]]:
|
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"]}'\
|
debian_sha_url: str = f'https://gitlab.com/api/v4/projects/{project_id}/jobs/{job_ids["build_debian"]}'\
|
||||||
'/artifacts/package/debian/SHA256SUMS'
|
'/artifacts/package/debian/SHA256SUMS'
|
||||||
debian_filename: str = fetch_single_shafile(debian_sha_url, api_token)
|
debian_filename: str = fetch_single_shafile(debian_sha_url, api_token)
|
||||||
|
|
Loading…
Reference in a new issue