Compare commits

...

4 Commits

Author SHA1 Message Date
Michael Otto
aecf203932 Letzte Fehler behoben 2026-03-03 14:47:45 +01:00
Michael Otto
3ee93bdc0d Kennzeichnung stable/unstable/testing 2026-03-03 14:22:12 +01:00
Michael Otto
8ee99fa5da Release v66 2026-03-03 14:12:40 +01:00
Michael Otto
98fb235fb9 Release v65 2026-03-03 14:11:54 +01:00
2 changed files with 33 additions and 11 deletions

View File

@@ -40,15 +40,29 @@ jobs:
run: |
TAG="${{ github.ref_name }}"
VERSION="${TAG#v}"
case "$TAG" in
*-unstable*) CHANNEL="unstable" ;;
*-testing*) CHANNEL="testing" ;;
*) CHANNEL="stable" ;;
*-unstable*)
CHANNEL="unstable"
DRAFT="false"
PRERELEASE="true"
;;
*-testing*)
CHANNEL="testing"
DRAFT="true"
PRERELEASE="false"
;;
*)
CHANNEL="stable"
DRAFT="false"
PRERELEASE="false"
;;
esac
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "channel=${CHANNEL}" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT
echo "draft=$DRAFT" >> $GITHUB_OUTPUT
echo "prerelease=$PRERELEASE" >> $GITHUB_OUTPUT
- name: plugin.info einlesen
id: info
@@ -147,10 +161,18 @@ jobs:
API_URL="https://${{ vars.RELEASE_URL }}/api/v1/repos/${GITHUB_REPOSITORY}/releases"
JSON=$(jq -n \
--arg tag "$TAG" \
--arg name "Version $VERSION" \
--arg tag "$TAG" \
--arg name "Version $VERSION" \
--arg body "${{ steps.changelog.outputs.current }}" \
'{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')
--argjson draft "${{ steps.releaseinfo.outputs.draft }}" \
--argjson prerelease "${{ steps.releaseinfo.outputs.prerelease }}" \
'{tag_name: $tag, name: $name, body: $body, draft: $draft, prerelease: $prerelease}')
# JSON=$(jq -n \
# --arg tag "$TAG" \
# --arg name "Version $VERSION" \
# --arg body "${{ steps.changelog.outputs.current }}" \
# '{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')
API_RESPONSE=$(curl -s -X POST "$API_URL" \
-H "accept: application/json" \

View File

@@ -1,7 +1,7 @@
name=LNO Sachsen | Plugin Test Action
description=Test plugin for release pipeline
author=Daniel Helbig, Michael Otto
email=daniel.helbig@kreis-meissen.de, michael.otto@landkreis-mittelsachsen.de
author=Daniel Helbig
email=daniel.helbig@kreis-meissen.de
qgisMinimumVersion=3.0
qgisMaximumVersion=3.99
deprecated=False