Release-Workflow hinzugefügt und plugin.info zu plugin.cfg umbenannt

This commit is contained in:
Michael Otto
2026-03-13 14:03:48 +01:00
parent dd2f7287c5
commit 8f9e14b9a5
2 changed files with 22 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ jobs:
run: | run: |
TAG="${{ github.ref_name }}" TAG="${{ github.ref_name }}"
VERSION="${TAG#v}" VERSION="${TAG#v}"
case "$TAG" in case "$TAG" in
*-unstable*) *-unstable*)
CHANNEL="unstable" CHANNEL="unstable"
@@ -53,11 +53,6 @@ jobs:
DRAFT="false" DRAFT="false"
PRERELEASE="true" PRERELEASE="true"
;; ;;
*-*)
CHANNEL="unstable"
DRAFT="false"
PRERELEASE="true"
;;
*) *)
CHANNEL="stable" CHANNEL="stable"
DRAFT="false" DRAFT="false"
@@ -70,13 +65,16 @@ jobs:
echo "draft=$DRAFT" >> $GITHUB_OUTPUT echo "draft=$DRAFT" >> $GITHUB_OUTPUT
echo "prerelease=$PRERELEASE" >> $GITHUB_OUTPUT echo "prerelease=$PRERELEASE" >> $GITHUB_OUTPUT
- name: plugin.info einlesen - name: plugin.cfg einlesen
id: info id: info
run: | run: |
cd repo cd repo
while IFS='=' read -r key value; do while read -r line || [ -n "$line" ]; do
key="${line%%=*}"
value="${line#*=}"
echo "$key=$value" >> $GITHUB_OUTPUT echo "$key=$value" >> $GITHUB_OUTPUT
done < plugin.info echo "$key=$value"
done < plugin.cfg
- name: Changelog einlesen - name: Changelog einlesen
id: changelog id: changelog
@@ -146,6 +144,9 @@ jobs:
ZIP_FOLDER="${{ steps.info.outputs.zip_folder }}" ZIP_FOLDER="${{ steps.info.outputs.zip_folder }}"
ZIP_FILE="${ZIP_FOLDER}.zip" ZIP_FILE="${ZIP_FOLDER}.zip"
echo "ZIP_FOLDER: $ZIP_FOLDER"
echo "ZIP_FILE: $ZIP_FILE"
VERSION="${{ steps.releaseinfo.outputs.version }}" VERSION="${{ steps.releaseinfo.outputs.version }}"
REPO_NAME="${GITHUB_REPOSITORY##*/}" REPO_NAME="${GITHUB_REPOSITORY##*/}"
#ZIP_NAME="${REPO_NAME}-${VERSION}.zip" #ZIP_NAME="${REPO_NAME}-${VERSION}.zip"
@@ -291,4 +292,4 @@ jobs:
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \ -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "$JSON" \ -d "$JSON" \
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches" "https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"

11
plugin.cfg Normal file
View File

@@ -0,0 +1,11 @@
name=LNO Sachsen | Plugin Test Action
description=Test plugin for release pipeline
author=Daniel Helbig
email=daniel.helbig@kreis-meissen.de
qgisMinimumVersion=3.0
qgisMaximumVersion=3.99
deprecated=False
experimental=True
supportsQt6=Yes
zip_folder=plugin_folder