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

chore: add whatsapp notifications and bump version

parent 99953f4a
No related branches found
No related tags found
1 merge request!14Feat/whatsapp
Pipeline #9625 failed
......@@ -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
{
"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>",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment