forked from AG_QGIS/Plugin_Test_Action
Compare commits
138 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 60f74d17bc | |||
| 8ab7bb29b2 | |||
| d3e5ce6c9c | |||
| 2403a70d68 | |||
|
|
da4f5cdb5c | ||
| 81034d63b8 | |||
| 36812dca5e | |||
| 7423abec73 | |||
| 2d78cb6ba8 | |||
| 9dbf68e55a | |||
| 739d6e150c | |||
| 184b4270bd | |||
| 94b251b3d5 | |||
| c3fb8c87ab | |||
| 5f71302df7 | |||
| 550375fa25 | |||
| 2643ef75bd | |||
| 9c36e2224c | |||
| 80e899d90f | |||
| f4d08185fe | |||
| b6f9fa33c4 | |||
| d377f49f7e | |||
| 35660ebc9e | |||
| 179657bc73 | |||
| 1cbfe63554 | |||
| 4928b07e51 | |||
| c99a3cf81c | |||
| da49d69d18 | |||
| afb05c467c | |||
| 8ce978465d | |||
| ffaed7f002 | |||
| 97e14debbe | |||
| 4c205acd49 | |||
| 06af34a284 | |||
| a0cc33d95e | |||
| 8864789ce3 | |||
| a8427da05c | |||
| a13cf55c21 | |||
| 916b4501f9 | |||
| 6d74f0ebe8 | |||
| 345c1381c8 | |||
| 043b8565ee | |||
| cb57cb4762 | |||
| 5b13d76f49 | |||
| 344d6bd4f2 | |||
| d102a30382 | |||
|
|
27e75662dd | ||
|
|
89a000466d | ||
| b41c6cadae | |||
|
|
bbe566b940 | ||
|
|
443c474415 | ||
|
|
da7edb8904 | ||
|
|
7c6e102362 | ||
|
|
04fba40dee | ||
|
|
7c8dd32cf9 | ||
| 3f427ba5ae | |||
|
|
15288d5550 | ||
|
|
d9ee9b5480 | ||
| 008fead160 | |||
|
|
0f16d26ecd | ||
|
|
b917d7f51d | ||
|
|
3998fe7c9e | ||
| cf51443b93 | |||
|
|
8c28591b56 | ||
|
|
74430d3bd1 | ||
|
|
42d6640ff8 | ||
| 8c8d67cc0c | |||
| f24bf35eba | |||
| 5c2bb87bb5 | |||
| 2fb265f248 | |||
|
|
d1ec0e9c78 | ||
| c7eaa8dd6a | |||
|
|
92c2e7bcb9 | ||
|
|
33e5be856f | ||
|
|
e017d25870 | ||
|
|
03b4b6ae2a | ||
|
|
c4ba53b17f | ||
|
|
7c71b0a9ac | ||
|
|
29759a7a4a | ||
|
|
a908970326 | ||
|
|
e760b75bf5 | ||
|
|
2223628050 | ||
|
|
bebdc996db | ||
|
|
be3811785b | ||
|
|
be1c64c1c3 | ||
|
|
2f2e78cc34 | ||
|
|
9982d125b1 | ||
|
|
69c086a3ae | ||
|
|
07f921eb03 | ||
|
|
a8deca3037 | ||
|
|
ed46846d4e | ||
|
|
8289269881 | ||
|
|
c9de2e6f47 | ||
|
|
a881362e02 | ||
|
|
1a2afb8830 | ||
|
|
8f9e14b9a5 | ||
|
|
dd2f7287c5 | ||
|
|
524c26e64e | ||
|
|
46d23087e2 | ||
|
|
541c210bf6 | ||
|
|
3d3dc098d5 | ||
|
|
23827bbd13 | ||
|
|
74d8eb468d | ||
|
|
359b91a675 | ||
|
|
c2f0fcbbb4 | ||
|
|
8a8dfc8187 | ||
|
|
61e09aff21 | ||
|
|
ed5021e268 | ||
|
|
040af9fca3 | ||
|
|
945c54e78f | ||
|
|
f01e90700b | ||
|
|
7920fb83f3 | ||
|
|
91da5ee3c0 | ||
|
|
0912ba17ca | ||
|
|
afbb7e3e65 | ||
|
|
bbbdcbcdf7 | ||
|
|
ac1d33b125 | ||
|
|
1a91574fe3 | ||
|
|
eeb4dc68b2 | ||
|
|
e7f1e7e47c | ||
|
|
0f533b32a5 | ||
|
|
aecf203932 | ||
|
|
3ee93bdc0d | ||
|
|
8ee99fa5da | ||
|
|
98fb235fb9 | ||
|
|
a58f6255fc | ||
|
|
78ffc6d6d2 | ||
|
|
00785eeabd | ||
|
|
8f0e6a9978 | ||
| 5ef21270b2 | |||
|
|
5f756be077 | ||
|
|
a6837e5fd2 | ||
|
|
dac2a8e973 | ||
|
|
0fa2861040 | ||
|
|
4790001f30 | ||
|
|
2eacee23f5 | ||
|
|
5d12fefb1d | ||
|
|
495a4ac049 |
133
.gitea/workflows/release.yaml
Normal file
133
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,133 @@
|
||||
name: Release Plugin
|
||||
run-name: "Release | ${{ github.ref_name }}"
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: alpine-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: Notwendige Abhängigkeiten installieren
|
||||
shell: sh
|
||||
run: |
|
||||
apk add --no-cache bash git jq curl
|
||||
|
||||
- name: Code holen
|
||||
run: |
|
||||
REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git"
|
||||
|
||||
git clone "$REPO_URL" repo
|
||||
cd repo
|
||||
|
||||
git checkout "$TAG"
|
||||
env:
|
||||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
TAG: "${{ github.ref_name }}"
|
||||
|
||||
- name: Version und Kanal bestimmen
|
||||
id: releaseinfo
|
||||
run: |
|
||||
TAG="${{ github.ref_name }}"
|
||||
RAW_VERSION="${TAG#v}"
|
||||
VERSION="${RAW_VERSION%%-*}"
|
||||
|
||||
# Channel und Suffix automatisch bestimmen anhand des Tag-Suffix
|
||||
case "$RAW_VERSION" in
|
||||
*-testing*|*-t|*-T)
|
||||
CHANNEL="testing"
|
||||
PRERELEASE="true"
|
||||
SUFFIX="-testing"
|
||||
;;
|
||||
*-unstable*|*-u|*-U)
|
||||
CHANNEL="unstable"
|
||||
PRERELEASE="true"
|
||||
SUFFIX="-unstable"
|
||||
;;
|
||||
*)
|
||||
CHANNEL="stable"
|
||||
PRERELEASE="false"
|
||||
SUFFIX=""
|
||||
;;
|
||||
esac
|
||||
|
||||
# Output setzen
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT
|
||||
echo "prerelease=$PRERELEASE" >> $GITHUB_OUTPUT
|
||||
|
||||
# Optional Debug
|
||||
echo "VERSION=$VERSION"
|
||||
echo "CHANNEL=$CHANNEL"
|
||||
echo "PRERELEASE=$PRERELEASE"
|
||||
|
||||
# - name: plugin.cfg einlesen
|
||||
# id: config
|
||||
# run: |
|
||||
# cd repo
|
||||
# while read -r line || [ -n "$line" ]; do
|
||||
# key="${line%%=*}"
|
||||
# value="${line#*=}"
|
||||
# echo "$key=$value" >> $GITHUB_OUTPUT
|
||||
# done < plugin.cfg
|
||||
|
||||
- name: Payload erzeugen
|
||||
id: payload
|
||||
run: |
|
||||
cd repo
|
||||
|
||||
NAME="${GITHUB_REPOSITORY##*/}"
|
||||
GROUP="${GITHUB_REPOSITORY%%/*}"
|
||||
VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||
CHANNEL="${{ steps.releaseinfo.outputs.channel }}"
|
||||
PRERELEASE="${{ steps.releaseinfo.outputs.prerelease }}"
|
||||
ZIP_FOLDER="${{ vars.ZIP_FOLDER }}"
|
||||
ZIP_FILE="${ZIP_FOLDER}.zip"
|
||||
TAG="${{ github.ref_name }}"
|
||||
#GIT_URL=${GITHUB_REPOSITORY}
|
||||
|
||||
jq -n \
|
||||
--arg name "$NAME" \
|
||||
--arg group "$GROUP" \
|
||||
--arg version "$VERSION" \
|
||||
--arg channel "$CHANNEL" \
|
||||
--arg prerelease "$PRERELEASE" \
|
||||
--arg zip_folder "$ZIP_FOLDER" \
|
||||
--arg zip_file "$ZIP_FILE" \
|
||||
--arg tag "$TAG" \
|
||||
'{
|
||||
name: $name,
|
||||
group: $group,
|
||||
version: $version,
|
||||
channel: $channel,
|
||||
prerelease: ($prerelease == "true"),
|
||||
zip_folder: $zip_folder,
|
||||
zip_file: $zip_file,
|
||||
tag: $tag
|
||||
}' > payload.json
|
||||
|
||||
cat payload.json
|
||||
|
||||
- name: Repository aktualisieren
|
||||
run: |
|
||||
NAME="${GITHUB_REPOSITORY##*/}"
|
||||
TAG="${{ steps.releaseinfo.outputs.version }}"-"${{ steps.releaseinfo.outputs.channel }}"
|
||||
PAYLOAD_B64=$(base64 -w0 repo/payload.json)
|
||||
|
||||
JSON="{\"ref\":\"hidden/workflows\",\"inputs\":{\"payload\":\"$PAYLOAD_B64\",\"name\":\"$NAME\",\"tag\":\"$TAG\"}}"
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$JSON" \
|
||||
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
||||
env:
|
||||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
OWNER: "AG_QGIS"
|
||||
WORKFLOW: "release.yaml"
|
||||
|
||||
@@ -1,349 +0,0 @@
|
||||
name: Release Plugin
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: alpine-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: Notwendige Abhängigkeiten installieren
|
||||
shell: sh
|
||||
run: |
|
||||
apk add --no-cache git zip curl jq rsync bash
|
||||
git config --global http.sslVerify false
|
||||
|
||||
- name: Code holen
|
||||
run: |
|
||||
# Tag aus GitHub Actions Kontext extrahieren
|
||||
TAG="${GITHUB_REF#refs/tags/}"
|
||||
echo "DEBUG | Tag erkannt: $TAG"
|
||||
|
||||
# Repo-URL dynamisch aus vars und github.repository bauen
|
||||
REPO_URL="https://${RELEASE_TOKEN}:x-oauth-basic@${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}.git"
|
||||
echo "DEBUG | Klone von: $REPO_URL"
|
||||
|
||||
# Repository klonen
|
||||
git clone "$REPO_URL" repo
|
||||
cd repo
|
||||
|
||||
git checkout "$TAG"
|
||||
env:
|
||||
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||
|
||||
- name: Version und Kanal bestimmen
|
||||
id: releaseinfo
|
||||
run: |
|
||||
TAG="${{ github.ref_name }}"
|
||||
VERSION="${TAG#v}"
|
||||
|
||||
case "$TAG" in
|
||||
*-unstable*) CHANNEL="unstable" ;;
|
||||
*-testing*) CHANNEL="testing" ;;
|
||||
*) CHANNEL="stable" ;;
|
||||
esac
|
||||
|
||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "channel=${CHANNEL}" >> $GITHUB_OUTPUT
|
||||
|
||||
echo "DEBUG | Version: $VERSION"
|
||||
echo "DEBUG | Kanal: $CHANNEL"
|
||||
|
||||
# - name: metadata.txt erzeugen
|
||||
# run: |
|
||||
# cd repo
|
||||
|
||||
# VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||
|
||||
# # Vorlage kopieren
|
||||
# cp .plugin/metadata.template metadata.txt
|
||||
|
||||
# # Platzhalter ersetzen
|
||||
# sed -i "s/@VERSION@/${VERSION}/g" metadata.txt
|
||||
|
||||
# echo "DEBUG | metadata.txt erzeugt:"
|
||||
# cat metadata.txt
|
||||
|
||||
- name: plugin.info einlesen
|
||||
id: info
|
||||
run: |
|
||||
cd repo
|
||||
while IFS='=' read -r key value; do
|
||||
echo "$key=$value" >> $GITHUB_OUTPUT
|
||||
done < plugin.info
|
||||
|
||||
echo "DEBUG | plugin.info geladen:"
|
||||
cat plugin.info
|
||||
|
||||
- name: metadata.txt erzeugen
|
||||
run: |
|
||||
cd repo
|
||||
|
||||
TEMPLATE=".plugin/metadata.template"
|
||||
OUT="metadata.txt"
|
||||
|
||||
CONTENT=$(cat "$TEMPLATE")
|
||||
|
||||
CONTENT="${CONTENT//\{\{NAME\}\}/${{ steps.info.outputs.name }}}"
|
||||
CONTENT="${CONTENT//\{\{DESCRIPTION\}\}/${{ steps.info.outputs.description }}}"
|
||||
CONTENT="${CONTENT//\{\{AUTHOR\}\}/${{ steps.info.outputs.author }}}"
|
||||
CONTENT="${CONTENT//\{\{EMAIL\}\}/${{ steps.info.outputs.email }}}"
|
||||
CONTENT="${CONTENT//\{\{VERSION\}\}/${{ steps.releaseinfo.outputs.version }}}"
|
||||
|
||||
printf "%s\n" "$CONTENT" > "$OUT"
|
||||
|
||||
echo "DEBUG | metadata.txt erzeugt:"
|
||||
cat metadata.txt
|
||||
|
||||
# - name: ZIP-Datei erstellen
|
||||
# id: zip
|
||||
# run: |
|
||||
# cd repo
|
||||
|
||||
# # Plugin-Ordnername aus .plugin/zip_folder lesen
|
||||
# ZIP_FOLDER=$(cat .plugin/zip_folder)
|
||||
# echo "DEBUG | Plugin-Ordnername: $ZIP_FOLDER"
|
||||
|
||||
# VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||
# REPO_NAME="${GITHUB_REPOSITORY##*/}"
|
||||
# ZIP_NAME="${REPO_NAME}-${VERSION}.zip"
|
||||
|
||||
# echo "DEBUG | ZIP wird erzeugt: $ZIP_NAME"
|
||||
|
||||
# # Temporären Build-Ordner anlegen
|
||||
# mkdir -p dist/${ZIP_FOLDER}
|
||||
|
||||
# # Plugin-Dateien kopieren (alles außer CI-/Meta-Verzeichnisse)
|
||||
# rsync -a \
|
||||
# --exclude='.git' \
|
||||
# --exclude='.gitea' \
|
||||
# --exclude='.plugin' \
|
||||
# --exclude='dist' \
|
||||
# ./ dist/${ZIP_FOLDER}/
|
||||
|
||||
# # ZIP erzeugen
|
||||
# cd dist
|
||||
# zip -r "${ZIP_NAME}" "${ZIP_FOLDER}/" \
|
||||
# -x "*.pyc" -x "*/__pycache__/*"
|
||||
# cd ..
|
||||
|
||||
# # ZIP-Name für spätere Steps bereitstellen
|
||||
# echo "zip_name=${ZIP_NAME}" >> $GITHUB_OUTPUT
|
||||
|
||||
# echo "DEBUG | ZIP-Datei erzeugt: dist/${ZIP_NAME}"
|
||||
|
||||
- name: ZIP-Datei erstellen
|
||||
id: zip
|
||||
run: |
|
||||
cd repo
|
||||
|
||||
ZIP_FOLDER="${{ steps.info.outputs.zip_folder }}"
|
||||
echo "DEBUG | Plugin-Ordnername: $ZIP_FOLDER"
|
||||
|
||||
VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||
REPO_NAME="${GITHUB_REPOSITORY##*/}"
|
||||
ZIP_NAME="${REPO_NAME}-${VERSION}.zip"
|
||||
|
||||
echo "DEBUG | ZIP wird erzeugt: $ZIP_NAME"
|
||||
|
||||
mkdir -p dist/${ZIP_FOLDER}
|
||||
|
||||
rsync -a \
|
||||
--exclude='.git' \
|
||||
--exclude='.gitea' \
|
||||
--exclude='.plugin' \
|
||||
--exclude='dist' \
|
||||
./ dist/${ZIP_FOLDER}/
|
||||
|
||||
cd dist
|
||||
zip -r "${ZIP_NAME}" "${ZIP_FOLDER}/" \
|
||||
-x "*.pyc" -x "*/__pycache__/*"
|
||||
cd ..
|
||||
|
||||
echo "zip_name=${ZIP_NAME}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Gitea‑Release erstellen
|
||||
id: create_release
|
||||
run: |
|
||||
TAG="${{ github.ref_name }}"
|
||||
VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||
CHANNEL="${{ steps.releaseinfo.outputs.channel }}"
|
||||
|
||||
echo "Erstelle Release für Tag: $TAG"
|
||||
echo "Version: $VERSION"
|
||||
echo "Kanal: $CHANNEL"
|
||||
|
||||
API_URL="https://${{ vars.RELEASE_URL }}/api/v1/repos/${GITHUB_REPOSITORY}/releases"
|
||||
|
||||
# JSON‑Body erzeugen
|
||||
JSON=$(jq -n \
|
||||
--arg tag "$TAG" \
|
||||
--arg name "Version $VERSION" \
|
||||
--arg body "Automatisch erzeugtes Release für Kanal: $CHANNEL" \
|
||||
'{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')
|
||||
|
||||
echo "Sende API‑Request an: $API_URL"
|
||||
echo "JSON‑Payload:"
|
||||
echo "$JSON"
|
||||
|
||||
# Release erstellen
|
||||
API_RESPONSE=$(curl -s -X POST "$API_URL" \
|
||||
-H "accept: application/json" \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$JSON")
|
||||
|
||||
RELEASE_ID=$(echo "$API_RESPONSE" | jq -r '.id')
|
||||
|
||||
if [ "$RELEASE_ID" = "null" ] || [ -z "$RELEASE_ID" ]; then
|
||||
echo "Fehler beim Erstellen des Releases!"
|
||||
echo "API‑Antwort:"
|
||||
echo "$API_RESPONSE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Release erfolgreich erstellt. ID: $RELEASE_ID"
|
||||
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: ZIP-Datei hochladen
|
||||
run: |
|
||||
RELEASE_ID="${{ steps.create_release.outputs.release_id }}"
|
||||
ZIP_NAME="${{ steps.zip.outputs.zip_name }}"
|
||||
|
||||
echo "Lade ZIP-Datei hoch: $ZIP_NAME"
|
||||
echo "Release-ID: $RELEASE_ID"
|
||||
|
||||
API_URL="https://${{ vars.RELEASE_URL }}/api/v1/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${ZIP_NAME}"
|
||||
|
||||
curl -s -X POST "$API_URL" \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/zip" \
|
||||
--data-binary "@repo/dist/${ZIP_NAME}" \
|
||||
-o upload_response.json
|
||||
|
||||
echo "Upload-Antwort:"
|
||||
cat upload_response.json
|
||||
|
||||
# Optional: Fehlerprüfung
|
||||
if jq -e '.id' upload_response.json >/dev/null 2>&1; then
|
||||
echo "ZIP erfolgreich hochgeladen."
|
||||
else
|
||||
echo "Fehler beim Hochladen der ZIP!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# - name: Payload erzeugen
|
||||
# run: |
|
||||
# cd repo
|
||||
|
||||
# PLUGIN_NAME=$(grep '^name=' metadata.txt | cut -d '=' -f2)
|
||||
# DESCRIPTION=$(grep '^description=' metadata.txt | cut -d '=' -f2)
|
||||
# AUTHOR=$(grep '^author=' metadata.txt | cut -d '=' -f2)
|
||||
# EMAIL=$(grep '^email=' metadata.txt | cut -d '=' -f2)
|
||||
|
||||
# VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||
# CHANNEL="${{ steps.releaseinfo.outputs.channel }}"
|
||||
# ZIP_NAME="${{ steps.zip.outputs.zip_name }}"
|
||||
# CHANGELOG="${{ steps.changelog.outputs.log }}"
|
||||
|
||||
# DOWNLOAD_URL="https://${{ vars.RELEASE_URL }}/${GITHUB_REPOSITORY}/releases/download/${{ github.ref_name }}/${ZIP_NAME}"
|
||||
|
||||
# jq -n \
|
||||
# --arg plugin "$PLUGIN_NAME" \
|
||||
# --arg version "$VERSION" \
|
||||
# --arg channel "$CHANNEL" \
|
||||
# --arg description "$DESCRIPTION" \
|
||||
# --arg author "$AUTHOR" \
|
||||
# --arg email "$EMAIL" \
|
||||
# --arg url "$DOWNLOAD_URL" \
|
||||
# --arg changelog "$CHANGELOG" \
|
||||
# '{
|
||||
# plugin: $plugin,
|
||||
# version: $version,
|
||||
# channel: $channel,
|
||||
# description: $description,
|
||||
# author: $author,
|
||||
# email: $email,
|
||||
# url: $url,
|
||||
# changelog: $changelog
|
||||
# }' > payload.json
|
||||
|
||||
# echo "Payload:"
|
||||
# cat payload.json
|
||||
|
||||
- name: Payload erzeugen
|
||||
run: |
|
||||
cd repo
|
||||
|
||||
VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||
CHANNEL="${{ steps.releaseinfo.outputs.channel }}"
|
||||
ZIP_NAME="${{ steps.zip.outputs.zip_name }}"
|
||||
|
||||
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" \
|
||||
'{
|
||||
plugin: $plugin,
|
||||
version: $version,
|
||||
channel: $channel,
|
||||
description: $description,
|
||||
author: $author,
|
||||
email: $email,
|
||||
url: $url,
|
||||
changelog: $changelog
|
||||
}' > payload.json
|
||||
|
||||
echo "DEBUG | Payload erzeugt:"
|
||||
cat payload.json
|
||||
|
||||
# - name: Repository aktualisieren
|
||||
# run: |
|
||||
# OWNER="AG_QGIS"
|
||||
# WORKFLOW="update.yml"
|
||||
|
||||
# # payload.json in Base64 umwandeln
|
||||
# PAYLOAD_B64=$(base64 -w0 repo/payload.json)
|
||||
|
||||
# # JSON für Gitea bauen
|
||||
# JSON="{\"ref\":\"feature/release\",\"inputs\":{\"payload\":\"$PAYLOAD_B64\"}}"
|
||||
|
||||
# echo "Sende JSON:"
|
||||
# echo "$JSON"
|
||||
|
||||
# curl -X POST \
|
||||
# -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d "$JSON" \
|
||||
# "https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
||||
|
||||
- name: Repository aktualisieren
|
||||
run: |
|
||||
OWNER="AG_QGIS"
|
||||
WORKFLOW="update.yml"
|
||||
|
||||
PAYLOAD_B64=$(base64 -w0 repo/payload.json)
|
||||
|
||||
JSON="{\"ref\":\"feature/release\",\"inputs\":{\"payload\":\"$PAYLOAD_B64\"}}"
|
||||
|
||||
echo "DEBUG | Sende JSON:"
|
||||
echo "$JSON"
|
||||
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$JSON" \
|
||||
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -174,5 +174,4 @@ cython_debug/
|
||||
# PyPI configuration file
|
||||
.pypirc
|
||||
|
||||
metadata.txt
|
||||
release.cmd
|
||||
release.cmd
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
0.2.0
|
||||
- Feature XY hinzugefügt
|
||||
- Bug Z behoben
|
||||
0.1.0
|
||||
- Initiales Release
|
||||
18
changelog.txt
Normal file
18
changelog.txt
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
Version 1-testing:
|
||||
- nach testing gemerged
|
||||
---
|
||||
Version 11-unstable:
|
||||
- metadata.txt aktualisiert
|
||||
---
|
||||
Version 10-unstable:
|
||||
- Änderung 5
|
||||
- Änderung 6
|
||||
---
|
||||
Version 9-unstable:
|
||||
- Änderung 3
|
||||
- Änderung 4
|
||||
---
|
||||
Version 8-unstable:
|
||||
- Änderung 1
|
||||
- Änderung 2
|
||||
@@ -1,13 +1,14 @@
|
||||
[general]
|
||||
name=LNO Sachsen | Plugin Test Action
|
||||
qgisMinimumVersion=3.40
|
||||
qgisMaximumVersion=3.99
|
||||
description=Test plugin for release pipeline
|
||||
version=@VERSION@
|
||||
version=1-testing
|
||||
author=Daniel Helbig, Michael Otto
|
||||
email=daniel.helbig@kreis-meissen.de, michael.otto@landkreis-mittelsachsen.de
|
||||
email=daniel.helbig@kreis-meissen.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
|
||||
qgisMinimumVersion=3.0
|
||||
qgisMaximumVersion=3.99
|
||||
deprecated=False
|
||||
experimental=True
|
||||
zip_folder=plugin_folder
|
||||
repository=https://entwicklung.flurneuordnung-sachsen.de/AG_QGIS/Plugin_Test_Action/src/branch/testing/
|
||||
experimental=true
|
||||
deprecated=false
|
||||
supportsQt6=true
|
||||
11
plugin.cfg
Normal file
11
plugin.cfg
Normal 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
|
||||
@@ -1,13 +0,0 @@
|
||||
[general]
|
||||
name={{PLUGIN}}
|
||||
qgisMinimumVersion=3.0
|
||||
qgisMaximumVersion=3.99
|
||||
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
|
||||
Reference in New Issue
Block a user