Compare commits

...

3 Commits
v46 ... v51

Author SHA1 Message Date
Michael Otto
2eacee23f5 Payload ergänzt 2026-03-03 12:09:26 +01:00
Michael Otto
5d12fefb1d Test komplette metadata.txt 2026-03-03 11:28:58 +01:00
Michael Otto
495a4ac049 Pfad der metadate.template angepasst 2026-03-03 11:16:03 +01:00
3 changed files with 57 additions and 29 deletions

View File

@@ -85,16 +85,24 @@ jobs:
run: |
cd repo
TEMPLATE=".plugin/metadata.template"
TEMPLATE="templates/metadata.template"
OUT="metadata.txt"
CONTENT=$(cat "$TEMPLATE")
CONTENT="${CONTENT//\{\{NAME\}\}/${{ steps.info.outputs.name }}}"
CONTENT="${CONTENT//\{\{QGIS_MIN\}\}/${{ steps.info.outputs.qgisMinimumVersion }}}"
CONTENT="${CONTENT//\{\{QGIS_MAX\}\}/${{ steps.info.outputs.qgisMaximumVersion }}}"
CONTENT="${CONTENT//\{\{DESCRIPTION\}\}/${{ steps.info.outputs.description }}}"
CONTENT="${CONTENT//\{\{VERSION\}\}/${{ steps.releaseinfo.outputs.version }}}"
CONTENT="${CONTENT//\{\{AUTHOR\}\}/${{ steps.info.outputs.author }}}"
CONTENT="${CONTENT//\{\{EMAIL\}\}/${{ steps.info.outputs.email }}}"
CONTENT="${CONTENT//\{\{VERSION\}\}/${{ steps.releaseinfo.outputs.version }}}"
CONTENT="${CONTENT//\{\{HOMEPAGE\}\}/${{ steps.info.outputs.homepage }}}"
CONTENT="${CONTENT//\{\{TRACKER\}\}/${{ steps.info.outputs.tracker }}}"
CONTENT="${CONTENT//\{\{REPOSITORY\}\}/${{ steps.info.outputs.repository }}}"
CONTENT="${CONTENT//\{\{EXPERIMENTAL\}\}/${{ steps.info.outputs.experimental }}}"
CONTENT="${CONTENT//\{\{DEPRECATED\}\}/${{ steps.info.outputs.deprecated }}}"
CONTENT="${CONTENT//\{\{QT6\}\}/${{ steps.info.outputs.supportsQt6 }}}"
printf "%s\n" "$CONTENT" > "$OUT"
@@ -288,28 +296,45 @@ jobs:
DOWNLOAD_URL="https://${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}/releases/download/${{ github.ref_name }}/${ZIP_NAME}"
jq -n \
--arg plugin "${{ steps.info.outputs.name }}" \
--arg version "$VERSION" \
--arg channel "$CHANNEL" \
--arg description "${{ steps.info.outputs.description }}" \
--arg author "${{ steps.info.outputs.author }}" \
--arg email "${{ steps.info.outputs.email }}" \
--arg url "$DOWNLOAD_URL" \
--arg changelog "Automatischer Release" \
--arg plugin "${{ steps.info.outputs.name }}" \
--arg version "$VERSION" \
--arg channel "$CHANNEL" \
--arg description "${{ steps.info.outputs.description }}" \
--arg author "${{ steps.info.outputs.author }}" \
--arg email "${{ steps.info.outputs.email }}" \
--arg qgis_min "${{ steps.info.outputs.qgisMinimumVersion }}" \
--arg qgis_max "${{ steps.info.outputs.qgisMaximumVersion }}" \
--arg homepage "${{ steps.info.outputs.homepage }}" \
--arg tracker "${{ steps.info.outputs.tracker }}" \
--arg repository "${{ steps.info.outputs.repository }}" \
--arg experimental "${{ steps.info.outputs.experimental }}" \
--arg deprecated "${{ steps.info.outputs.deprecated }}" \
--arg qt6 "${{ steps.info.outputs.supportsQt6 }}" \
--arg url "$DOWNLOAD_URL" \
--arg changelog "Automatischer Release" \
'{
plugin: $plugin,
version: $version,
channel: $channel,
description: $description,
author: $author,
email: $email,
url: $url,
changelog: $changelog
plugin: $plugin,
version: $version,
channel: $channel,
description: $description,
author: $author,
email: $email,
qgis_min: $qgis_min,
qgis_max: $qgis_max,
homepage: $homepage,
tracker: $tracker,
repository: $repository,
experimental: $experimental,
deprecated: $deprecated,
qt6: $qt6,
url: $url,
changelog: $changelog
}' > payload.json
echo "DEBUG | Payload erzeugt:"
cat payload.json
# - name: Repository aktualisieren
# run: |
# OWNER="AG_QGIS"

View File

@@ -10,4 +10,6 @@ qgisMinimumVersion=3.0
qgisMaximumVersion=3.99
deprecated=False
experimental=True
supportsQt6=Yes
zip_folder=plugin_folder

View File

@@ -1,13 +1,14 @@
[general]
name={{PLUGIN}}
qgisMinimumVersion=3.0
qgisMaximumVersion=3.99
name={{NAME}}
qgisMinimumVersion={{QGIS_MIN}}
qgisMaximumVersion={{QGIS_MAX}}
description={{DESCRIPTION}}
version=@VERSION@
author=Daniel Helbig, Michael Otto
email=daniel.helbig@kreis-meissen.de, michael.otto@landkreis-mittelsachsen.de
homepage=https://entwicklung.flurneuordnung-sachsen.de/AG_QGIS/Plugin_Test_Action
tracker=https://entwicklung.flurneuordnung-sachsen.de/AG_QGIS/Plugin_Test_Action/issues
repository=https://entwicklung.flurneuordnung-sachsen.de/AG_QGIS/Plugin_Test_Action
experimental=True
deprecated=False
version={{VERSION}}
author={{AUTHOR}}
email={{EMAIL}}
homepage={{HOMEPAGE}}
tracker={{TRACKER}}
repository={{REPOSITORY}}
experimental={{EXPERIMENTAL}}
deprecated={{DEPRECATED}}
supportsQt6={{QT6}}