14 Commits
test ... v1.9.2

Author SHA1 Message Date
1015627822 chore: bump version to 1.9.2
All checks were successful
Build & Release Plugin / release (push) Successful in 10s
2026-02-01 01:23:38 +00:00
8f1fc80835 fix: update release workflow to handle API response and improve error reporting
All checks were successful
Build & Release Plugin / release (push) Successful in 4s
2026-02-01 01:22:50 +00:00
b73d858ca7 feat: implement Gitea release creation with asset upload
Some checks failed
Build & Release Plugin / release (push) Failing after 8s
2026-02-01 01:22:10 +00:00
aa4bfa33c0 fix: remove sudo from zip installation in release workflow
Some checks failed
Build & Release Plugin / release (push) Failing after 9s
2026-02-01 01:13:22 +00:00
0b9cd99fb0 fix: ensure zip is installed before building distribution package
Some checks failed
Build & Release Plugin / release (push) Failing after 4s
2026-02-01 01:12:52 +00:00
eba8df9962 refactor: replace rsync with tar for packaging assets in release workflow
Some checks failed
Build & Release Plugin / release (push) Failing after 4s
2026-02-01 01:12:09 +00:00
f2a39e4660 refactor: update release workflow to improve tagging and asset packaging
Some checks failed
Build & Release Plugin / release (push) Failing after 4s
2026-02-01 01:11:15 +00:00
2f0a44706b fix: improve tag existence check by using local tags
Some checks failed
Generate Manifest & Tag / tag (push) Failing after 3s
2026-02-01 01:01:41 +00:00
10a46f8668 Merge branch 'main' of 192.168.1.206:roberto/siti-ai-product-content-generator
Some checks failed
Generate Manifest & Tag / tag (push) Failing after 3s
2026-02-01 01:00:33 +00:00
db981ba4a6 refactor: rename workflow to 'Generate Manifest & Tag' and simplify release process 2026-02-01 01:00:31 +00:00
github-actions[bot]
aa757710c9 chore: update manifest.json 2026-02-01 00:56:40 +00:00
1d587ce2d1 Merge branch 'main' of 192.168.1.206:roberto/siti-ai-product-content-generator
Some checks failed
Build & Release Plugin / release (push) Failing after 5s
2026-02-01 00:56:35 +00:00
0aaa7087a9 chore: downgrade version to 1.9.1 in plugin header 2026-02-01 00:56:09 +00:00
github-actions[bot]
68bce5006d chore: update manifest.json 2026-02-01 00:45:58 +00:00

View File

@@ -26,6 +26,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
fetch-tags: true
- name: Determine plugin version - name: Determine plugin version
id: meta id: meta
@@ -85,7 +86,7 @@ jobs:
id: tagcheck id: tagcheck
run: | run: |
TAG="v${{ steps.meta.outputs.version }}" TAG="v${{ steps.meta.outputs.version }}"
if git rev-parse "$TAG" >/dev/null 2>&1; then if git ls-remote --tags origin "refs/tags/$TAG" | grep -q "refs/tags/$TAG$"; then
echo "exists=true" >> "$GITHUB_OUTPUT" echo "exists=true" >> "$GITHUB_OUTPUT"
else else
echo "exists=false" >> "$GITHUB_OUTPUT" echo "exists=false" >> "$GITHUB_OUTPUT"
@@ -100,20 +101,26 @@ jobs:
if: steps.tagcheck.outputs.exists == 'false' if: steps.tagcheck.outputs.exists == 'false'
id: package id: package
run: | run: |
if ! command -v zip >/dev/null 2>&1; then
apt-get update -y
apt-get install -y zip
fi
VERSION="${{ steps.meta.outputs.version }}" VERSION="${{ steps.meta.outputs.version }}"
SLUG="siti-ai-product-content-generator" SLUG="siti-ai-product-content-generator"
BUILD_ROOT="$RUNNER_TEMP/build" BUILD_ROOT="$RUNNER_TEMP/build"
DEST_DIR="$BUILD_ROOT/$SLUG" DEST_DIR="$BUILD_ROOT/$SLUG"
mkdir -p "$DEST_DIR" mkdir -p "$DEST_DIR"
rsync -a ./ "$DEST_DIR" \ tar -cf - \
--exclude '.git/' \ --exclude='.git' \
--exclude '.github/' \ --exclude='.github' \
--exclude 'docker/' \ --exclude='docker' \
--exclude 'docs/' \ --exclude='docs' \
--exclude 'dist/' \ --exclude='dist' \
--exclude 'docker-compose.yml' \ --exclude='docker-compose.yml' \
--exclude 'PLAN.md' --exclude='PLAN.md' \
. | tar -xf - -C "$DEST_DIR"
mkdir -p dist mkdir -p dist
ZIP_PATH="dist/${SLUG}-${VERSION}.zip" ZIP_PATH="dist/${SLUG}-${VERSION}.zip"
@@ -122,24 +129,71 @@ jobs:
echo "asset_path=$ZIP_PATH" >> "$GITHUB_OUTPUT" echo "asset_path=$ZIP_PATH" >> "$GITHUB_OUTPUT"
echo "asset_name=${SLUG}-${VERSION}.zip" >> "$GITHUB_OUTPUT" echo "asset_name=${SLUG}-${VERSION}.zip" >> "$GITHUB_OUTPUT"
- name: Stel release-body samen - name: Maak Gitea release
if: steps.tagcheck.outputs.exists == 'false' if: steps.tagcheck.outputs.exists == 'false'
id: releasebody
run: |
if [ -n "$RELEASE_NOTES" ]; then
echo "text=$RELEASE_NOTES" >> "$GITHUB_OUTPUT"
else
echo "text=Automatische release op basis van versie ${{ steps.meta.outputs.version }}." >> "$GITHUB_OUTPUT"
fi
env: env:
RELEASE_NOTES: ${{ github.event.inputs.release_notes }} RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
RELEASE_SERVER_URL: ${{ vars.RELEASE_SERVER_URL }}
RELEASE_REPOSITORY: ${{ vars.RELEASE_REPOSITORY }}
run: |
VERSION="${{ steps.meta.outputs.version }}"
TAG="v$VERSION"
ASSET_PATH="${{ steps.package.outputs.asset_path }}"
ASSET_NAME="${{ steps.package.outputs.asset_name }}"
if [ -z "$RELEASE_TOKEN" ]; then
echo "::error::RELEASE_TOKEN ontbreekt. Voeg deze secret toe om releases te kunnen maken."
exit 1
fi
SERVER_URL="${RELEASE_SERVER_URL:-${GITHUB_SERVER_URL}}"
REPO="${RELEASE_REPOSITORY:-${GITHUB_REPOSITORY}}"
if [ -z "$SERVER_URL" ] || [ -z "$REPO" ]; then
echo "::error::Kan server of repository niet bepalen. Stel RELEASE_SERVER_URL en RELEASE_REPOSITORY in."
exit 1
fi
API_URL="${SERVER_URL%/}/api/v1"
export TAG
python3 - <<'PY'
import json
import os
payload = {
"tag_name": os.environ["TAG"],
"name": f"Siti AI Product Teksten {os.environ['TAG']}",
"body": f"Automatische release op basis van versie {os.environ['TAG'][1:]}",
"target_commitish": os.environ.get("GITHUB_SHA") or os.environ.get("GITEA_SHA", ""),
}
with open("release.json", "w", encoding="utf-8") as handle:
json.dump(payload, handle, ensure_ascii=False)
PY
curl -sS -X POST "$API_URL/repos/$REPO/releases" \
-H "Authorization: token $RELEASE_TOKEN" \
-H "Content-Type: application/json" \
-d @release.json \
-o release-response.json
RELEASE_ID=$(python3 - <<'PY'
import json
with open('release-response.json', 'r', encoding='utf-8') as handle:
data = json.load(handle)
print(data.get('id', ''))
PY
)
if [ -z "$RELEASE_ID" ]; then
echo "::error::Kon release-ID niet bepalen. Response: $(cat release-response.json)"
exit 1
fi
curl -sS -X POST "$API_URL/repos/$REPO/releases/$RELEASE_ID/assets?name=$ASSET_NAME" \
-H "Authorization: token $RELEASE_TOKEN" \
-H "Content-Type: application/zip" \
--data-binary "@$ASSET_PATH"
- name: Maak GitHub release
if: steps.tagcheck.outputs.exists == 'false'
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.meta.outputs.version }}
name: Siti AI Product Teksten v${{ steps.meta.outputs.version }}
body: ${{ steps.releasebody.outputs.text }}
generate_release_notes: true
files: ${{ steps.package.outputs.asset_path }}