Skip to content
Snippets Groups Projects
Commit 9f6b194c authored by Philipp Stadler's avatar Philipp Stadler
Browse files

chore: replace old ZIP link with download for all artifacts

parent 5c8bb181
No related branches found
No related tags found
1 merge request!126chore: omit zip from build and add new content
Pipeline #12621 passed
......@@ -15,7 +15,7 @@ export async function announce (opts: AnnounceOpts): Promise<void> {
`# Sinologie Anki Pack ${version} ist released! 🎉`,
`## Details zum Release:\n${linkToReleaseDetails(version)}`,
`## Download komplettes Pack als ZIP:\n${
linkToCombinedZip(opts.releaseDir)
allArtifactsZipDownload()
}`,
'## Download einzelne APKGs:',
...(await linksToApkgs(opts.releaseDir, opts.apkgFilenames))
......@@ -39,10 +39,6 @@ function linkToReleaseDetails (version: string): string {
)
}
function linkToCombinedZip (releaseDir: string): string {
return rawArtifactDownload(`${releaseDir}.zip`)
}
async function linksToApkgs (
releaseDir: string,
apkgFilenames: string[]
......@@ -70,6 +66,12 @@ function rawArtifactDownload (path: string): string {
}/artifacts/raw/${encodeURIComponent(path)}`
}
function allArtifactsZipDownload (): string {
return `https://gitlab.phaidra.org/kartenaale/sinologie-anki-pack/-/jobs/${
getCiJobId()
}/artifacts/download`
}
function getCiJobId (): string {
return process.env.CI_JOB_ID ?? 'job-id-unavailable'
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment