Validate package registry credentials

This commit is contained in:
Azimkin
2026-09-13 23:55:33 +02:00
parent fa27a569b8
commit ab7be99bea

View File

@@ -41,6 +41,19 @@ jobs:
uv build --no-sources uv build --no-sources
uv build --package micro-agents-tools --no-sources uv build --package micro-agents-tools --no-sources
- name: Verify registry credentials
env:
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
run: |
if [ -z "$PACKAGE_TOKEN" ]; then
echo "::error::Repository secret PACKAGE_TOKEN is not configured"
exit 1
fi
curl --fail --silent --show-error \
--header "Authorization: token $PACKAGE_TOKEN" \
https://git.azimkin.dev/api/v1/user \
> /dev/null
- name: Publish to Gitea PyPI registry - name: Publish to Gitea PyPI registry
env: env:
TWINE_USERNAME: Azimkin TWINE_USERNAME: Azimkin