ci: allow output of version in release script.
This commit is contained in:
parent
6af04649cc
commit
989acd1501
1 changed files with 11 additions and 4 deletions
13
release.sh
13
release.sh
|
@ -7,10 +7,17 @@ VERSION=$(sed -n '/^version:/ s/^version: *//p' "${PLUGIN}/build.yaml")
|
||||||
ARTIFACT_DIR=artifacts
|
ARTIFACT_DIR=artifacts
|
||||||
REPO_URL="https://gitea.redxef.at/redxef/jellyfin-smart-playlist/releases/download/v${VERSION}/jellyfin-smart-playlist_${VERSION}.dll"
|
REPO_URL="https://gitea.redxef.at/redxef/jellyfin-smart-playlist/releases/download/v${VERSION}/jellyfin-smart-playlist_${VERSION}.dll"
|
||||||
|
|
||||||
mkdir -p "${ARTIFACT_DIR}"
|
build() {
|
||||||
find "${PLUGIN}" -name project.assets.json -exec rm -v '{}' ';'
|
mkdir -p "${ARTIFACT_DIR}"
|
||||||
|
find "${PLUGIN}" -name project.assets.json -exec rm -v '{}' ';'
|
||||||
|
|
||||||
zipfile=$($JPRM --verbosity=debug plugin build "${PLUGIN}" --output="${ARTIFACT_DIR}" --version="${VERSION}") && {
|
zipfile=$($JPRM --verbosity=debug plugin build "${PLUGIN}" --output="${ARTIFACT_DIR}" --version="${VERSION}") && {
|
||||||
$JPRM --verbosity=debug repo add --plugin-url="${REPO_URL}" . "${zipfile}"
|
$JPRM --verbosity=debug repo add --plugin-url="${REPO_URL}" . "${zipfile}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
version() {
|
||||||
|
echo "$VERSION"
|
||||||
|
}
|
||||||
|
"$@"
|
||||||
exit $?
|
exit $?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue