diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 18441b4..9e60fe3 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -21,7 +21,16 @@ "Bash(git commit:*)", "Bash(git tag:*)", "Bash(node:*)", - "Bash(chmod +x /home/valentin/Documents/GitHub/multi_render_blender/release.sh)" + "Bash(chmod +x /home/valentin/Documents/GitHub/multi_render_blender/release.sh)", + "Bash(git rm --cached .env)", + "Bash(git status -u)", + "Bash(git push)", + "Bash(git push origin v1.2.0)", + "Bash(python3 -c \"import json,sys; data=json.load\\(sys.stdin\\); [print\\(f''{t[\"\"name\"\"]} -> {t[\"\"id\"\"][:12]}''\\) for t in data]\")", + "Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\(f''Release creee: id={d.get\\(\"\"id\"\", \"\"ERREUR\"\"\\)} tag={d.get\\(\"\"tag_name\"\", \"\"?\"\"\\)}''\\); print\\(d.get\\(''message'',''''\\)\\) if ''message'' in d else None\")", + "Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\(f'' OK: {d.get\\(\"\"name\"\",\"\"?\"\"\\)} \\({d.get\\(\"\"size\"\",0\\)//1024//1024}MB\\)''\\)\")", + "Bash(python3 -c \"import json,sys; d=json.load\\(sys.stdin\\); print\\(f''OK: {d.get\\(\"\"name\"\",d.get\\(\"\"message\"\",\"\"?\"\"\\)\\)} size={d.get\\(\"\"size\"\",0\\)//1024//1024}MB''\\)\")", + "Bash(python3 -c \":*)" ] } } diff --git a/release.sh b/release.sh index 6f9b6f1..e61d03a 100755 --- a/release.sh +++ b/release.sh @@ -146,8 +146,7 @@ for FILE in dist/${PRODUCT_NAME}-${VERSION}-*.zip; do echo "Upload de $FILENAME..." curl -s -X POST \ - "${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${RELEASE_ID}/assets?name=${FILENAME}" \ - -H "Authorization: token ${GITEA_TOKEN}" \ + "${GITEA_URL}/api/v1/repos/${OWNER}/${REPO}/releases/${RELEASE_ID}/assets?name=${FILENAME}&token=${GITEA_TOKEN}" \ -F "attachment=@${FILE}" done