From f097da7eb14cf75ca7ef475e22c9028c973e1181 Mon Sep 17 00:00:00 2001 From: smueller Date: Thu, 28 May 2026 11:13:39 +0200 Subject: [PATCH] Update product configuration for improved management: Added new fields for product metadata in the backend, enhancing the organization and retrieval of product information. Adjusted existing product entries to utilize the new metadata structure, ensuring consistency and better data handling. --- .gitea/workflows/obfuscate-main.yml | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .gitea/workflows/obfuscate-main.yml diff --git a/.gitea/workflows/obfuscate-main.yml b/.gitea/workflows/obfuscate-main.yml new file mode 100644 index 0000000..86a491b --- /dev/null +++ b/.gitea/workflows/obfuscate-main.yml @@ -0,0 +1,51 @@ +name: Obfuscate Main Build + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + obfuscate: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Skip loop commits + run: | + msg="$(git log -1 --pretty=%B)" + echo "Last commit message: $msg" + if echo "$msg" | grep -q "\[skip ci\]"; then + echo "Skip CI commit detected." + exit 0 + fi + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Run release obfuscation + run: python scripts/obfuscate_release.py --root . --hash-assets + + - name: Commit obfuscated build + run: | + git config user.name "gitea-actions" + git config user.email "actions@local" + git add -A + if git diff --cached --quiet; then + echo "No build changes to commit." + exit 0 + fi + git commit -m "chore(release): obfuscate and hash production assets [skip ci]" + git push