Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sinologie Anki Pack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
kartenaale
Sinologie Anki Pack
Commits
9f6b194c
Commit
9f6b194c
authored
1 year ago
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
chore: replace old ZIP link with download for all artifacts
parent
5c8bb181
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!126
chore: omit zip from build and add new content
Pipeline
#12621
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/announce/announce.ts
+7
-5
7 additions, 5 deletions
build/announce/announce.ts
with
7 additions
and
5 deletions
build/announce/announce.ts
+
7
−
5
View file @
9f6b194c
...
@@ -15,7 +15,7 @@ export async function announce (opts: AnnounceOpts): Promise<void> {
...
@@ -15,7 +15,7 @@ export async function announce (opts: AnnounceOpts): Promise<void> {
`# Sinologie Anki Pack
${
version
}
ist released! 🎉`
,
`# Sinologie Anki Pack
${
version
}
ist released! 🎉`
,
`## Details zum Release:\n
${
linkToReleaseDetails
(
version
)}
`
,
`## Details zum Release:\n
${
linkToReleaseDetails
(
version
)}
`
,
`## Download komplettes Pack als ZIP:\n
${
`## Download komplettes Pack als ZIP:\n
${
linkToCombinedZip
(
opts
.
releaseDir
)
allArtifactsZipDownload
(
)
}
`
,
}
`
,
'
## Download einzelne APKGs:
'
,
'
## Download einzelne APKGs:
'
,
...(
await
linksToApkgs
(
opts
.
releaseDir
,
opts
.
apkgFilenames
))
...(
await
linksToApkgs
(
opts
.
releaseDir
,
opts
.
apkgFilenames
))
...
@@ -39,10 +39,6 @@ function linkToReleaseDetails (version: string): string {
...
@@ -39,10 +39,6 @@ function linkToReleaseDetails (version: string): string {
)
)
}
}
function
linkToCombinedZip
(
releaseDir
:
string
):
string
{
return
rawArtifactDownload
(
`
${
releaseDir
}
.zip`
)
}
async
function
linksToApkgs
(
async
function
linksToApkgs
(
releaseDir
:
string
,
releaseDir
:
string
,
apkgFilenames
:
string
[]
apkgFilenames
:
string
[]
...
@@ -70,6 +66,12 @@ function rawArtifactDownload (path: string): string {
...
@@ -70,6 +66,12 @@ function rawArtifactDownload (path: string): string {
}
/artifacts/raw/
${
encodeURIComponent
(
path
)}
`
}
/artifacts/raw/
${
encodeURIComponent
(
path
)}
`
}
}
function
allArtifactsZipDownload
():
string
{
return
`https://gitlab.phaidra.org/kartenaale/sinologie-anki-pack/-/jobs/
${
getCiJobId
()
}
/artifacts/download`
}
function
getCiJobId
():
string
{
function
getCiJobId
():
string
{
return
process
.
env
.
CI_JOB_ID
??
'
job-id-unavailable
'
return
process
.
env
.
CI_JOB_ID
??
'
job-id-unavailable
'
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment