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
GitLab 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
d1d7ee57
Commit
d1d7ee57
authored
Jan 7, 2024
by
Philipp Stadler
Browse files
Options
Downloads
Patches
Plain Diff
chore: add whatsapp notifications and bump version
parent
99953f4a
No related branches found
No related tags found
1 merge request
!14
Feat/whatsapp
Pipeline
#9625
failed
Jan 7, 2024
Stage: lint
Stage: build
Stage: prepare-release
Stage: release
Stage: notify
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+16
-1
16 additions, 1 deletion
.gitlab-ci.yml
package.json
+1
-1
1 addition, 1 deletion
package.json
with
17 additions
and
2 deletions
.gitlab-ci.yml
+
16
−
1
View file @
d1d7ee57
...
...
@@ -5,6 +5,7 @@ stages:
-
build
-
prepare-release
-
release
-
notify
default
:
cache
:
...
...
@@ -68,10 +69,12 @@ prepare-gitlab-release:
-
NPM_VERSION_GIT_TAG_BEFORE=$(git tag --sort=-v:refname | grep ^${NPM_VERSION}$ -A 1 | tail -n 1 || exit_code=$?)
-
git log --pretty=medium "${NPM_VERSION_GIT_TAG_BEFORE}..${NPM_VERSION_GIT_TAG}" > RELEASE_NOTES.md
-
RELEASE_ZIP=sinologie-anki-pack-${NPM_VERSION}.zip
-
RELEASE_ZIP_DOWNLOAD_URL="https://gitlab.phaidra.org/kartenaale/sinologie-anki-pack/-/jobs/$JOB_ID/artifacts/download?file_type=archive"
-
echo NPM_VERSION=$NPM_VERSION > release.env
-
echo NPM_VERSION_GIT_TAG=$NPM_VERSION_GIT_TAG >> release.env
-
echo NPM_VERSION_GIT_TAG_BEFORE=$NPM_VERSION_GIT_TAG_BEFORE >> release.env
-
echo RELEASE_ZIP=$RELEASE_ZIP >> release.env
-
echo RELEASE_ZIP_DOWNLOAD_URL=$RELEASE_ZIP_DOWNLOAD_URL >> release.env
artifacts
:
paths
:
-
RELEASE_NOTES.md
...
...
@@ -97,4 +100,16 @@ create-gitlab-release:
assets
:
links
:
-
name
:
"
$RELEASE_ZIP"
url
:
https://gitlab.phaidra.org/kartenaale/sinologie-anki-pack/-/jobs/$JOB_ID/artifacts/download?file_type=archive
url
:
'
$RELEASE_ZIP_DOWNLOAD_URL'
notify
:
stage
:
notify
rules
:
-
if
:
$CI_COMMIT_TAG
needs
:
-
job
:
prepare-gitlab-release
artifacts
:
true
script
:
-
mudslide --cache .build-cache login
-
'
mudslide
--cache
.build-cache
send
$WHATSAPP_RELEASE_NOTIFY_RECIPIENT
"Sinologie
Anki
Pack
$NPM_VERSION
ist
released!
🎉\nDownload:
$RELEASE_ZIP_DOWNLOAD_URL\nDetails
zum
Release:
https://gitlab.phaidra.org/kartenaale/sinologie-anki-pack/-/releases\nViel
Spaß
beim
lernen!"'
\ No newline at end of file
This diff is collapsed.
Click to expand it.
package.json
+
1
−
1
View file @
d1d7ee57
{
"name"
:
"sinologie-anki-pack"
,
"version"
:
"1.1.
7
"
,
"version"
:
"1.1.
8
"
,
"description"
:
"Anki template for learning to write, speak and understand Mandarin Chinese"
,
"repository"
:
"https://gitlab.phaidra.org/kartenaale/sinologie-anki-pack"
,
"author"
:
"Philipp Stadler <hello@phstadler.com>"
,
...
...
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