0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 13:43:04 -05:00

Tue Sep 12 04:47:37 PM CEST 2023

This commit is contained in:
Bert van der Weerd 2023-09-12 16:47:37 +02:00
parent 7e2fba4cba
commit 558961b19e
No known key found for this signature in database
GPG key ID: 73370A0B9E5516B0

View file

@ -71,6 +71,7 @@ async function addReleaseArtifact(fileName: string, releaseId: number) {
}
async function createNewRelease() {
console.log(`Creating new release v${version}...`);
const releaseUrl = `${repoUrl}/releases`;
const requestBody = {
body: `Release v${version} of the LibreWolf source tarball.
@ -94,6 +95,7 @@ async function createNewRelease() {
if (response.status === 201) {
// await addReleaseArtifact(tarball_artifact, response.data.id);
await addReleaseArtifact(sha256sum_artifact, response.data.id);
console.log(`Successfully done building the release.`);
} else {
throw new Error(`Failed to create release. Unexpected response status: ${response.status}`);
}