mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-18 10:22:30 -05:00
Tue Sep 12 04:47:37 PM CEST 2023
This commit is contained in:
parent
7e2fba4cba
commit
558961b19e
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,7 @@ async function addReleaseArtifact(fileName: string, releaseId: number) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createNewRelease() {
|
async function createNewRelease() {
|
||||||
|
console.log(`Creating new release v${version}...`);
|
||||||
const releaseUrl = `${repoUrl}/releases`;
|
const releaseUrl = `${repoUrl}/releases`;
|
||||||
const requestBody = {
|
const requestBody = {
|
||||||
body: `Release v${version} of the LibreWolf source tarball.
|
body: `Release v${version} of the LibreWolf source tarball.
|
||||||
|
@ -94,6 +95,7 @@ async function createNewRelease() {
|
||||||
if (response.status === 201) {
|
if (response.status === 201) {
|
||||||
// await addReleaseArtifact(tarball_artifact, response.data.id);
|
// await addReleaseArtifact(tarball_artifact, response.data.id);
|
||||||
await addReleaseArtifact(sha256sum_artifact, response.data.id);
|
await addReleaseArtifact(sha256sum_artifact, response.data.id);
|
||||||
|
console.log(`Successfully done building the release.`);
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Failed to create release. Unexpected response status: ${response.status}`);
|
throw new Error(`Failed to create release. Unexpected response status: ${response.status}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue