fix: use jq for safe JSON in release step; remove redundant dev deps in ci

This commit is contained in:
pyr0ball 2026-04-05 18:07:13 -07:00
parent 378d125ba6
commit 3050179b2f
2 changed files with 8 additions and 6 deletions

View file

@ -18,7 +18,7 @@ jobs:
cache: pip
- name: Install dependencies
run: pip install -e ".[dev]" ruff mypy
run: pip install -e ".[dev]"
- name: Lint (ruff)
run: ruff check circuitforge_core/

View file

@ -32,8 +32,10 @@ jobs:
FORGEJO_TOKEN: ${{ secrets.FORGEJO_RELEASE_TOKEN }}
run: |
TAG="${GITHUB_REF_NAME}"
curl -s -X POST \
-H "Authorization: token ${FORGEJO_TOKEN}" \
-H "Content-Type: application/json" \
"https://git.opensourcesolarpunk.com/api/v1/repos/Circuit-Forge/circuitforge-core/releases" \
-d "{\"tag_name\":\"${TAG}\",\"name\":\"${TAG}\",\"draft\":false,\"prerelease\":false}"
jq -n --arg tag "${TAG}" \
'{"tag_name":$tag,"name":$tag,"draft":false,"prerelease":false}' \
| curl -sf -X POST \
-H "Authorization: token ${FORGEJO_TOKEN}" \
-H "Content-Type: application/json" \
"https://git.opensourcesolarpunk.com/api/v1/repos/Circuit-Forge/circuitforge-core/releases" \
-d @-