Compare commits

...

2 Commits

Author SHA1 Message Date
Michael Otto
3f41de4fac Release v19 2026-03-03 09:04:39 +01:00
Michael Otto
b885021941 Release v18 2026-03-03 09:01:04 +01:00
2 changed files with 43 additions and 0 deletions

View File

@@ -108,6 +108,48 @@ jobs:
echo "DEBUG | ZIP-Datei erzeugt: dist/${ZIP_NAME}"
- name: GiteaRelease 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"
# JSONBody 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 APIRequest an: $API_URL"
echo "JSONPayload:"
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 "APIAntwort:"
echo "$API_RESPONSE"
exit 1
fi
echo "Release erfolgreich erstellt. ID: $RELEASE_ID"
echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
- name: Debug Info

1
.plugin/zip_folder Normal file
View File

@@ -0,0 +1 @@
sn_test