Validate package registry credentials
This commit is contained in:
@@ -41,6 +41,19 @@ jobs:
|
||||
uv build --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
|
||||
env:
|
||||
TWINE_USERNAME: Azimkin
|
||||
|
||||
Reference in New Issue
Block a user