debug release api response
This commit is contained in:
@@ -38,7 +38,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GIT_RELEASE_TOKEN: ${{ secrets.GIT_RELEASE_TOKEN }}
|
GIT_RELEASE_TOKEN: ${{ secrets.GIT_RELEASE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# Create the release
|
|
||||||
RELEASE=$(curl -s -X POST \
|
RELEASE=$(curl -s -X POST \
|
||||||
-H "Authorization: token $GIT_RELEASE_TOKEN" \
|
-H "Authorization: token $GIT_RELEASE_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
@@ -51,9 +50,10 @@ jobs:
|
|||||||
}" \
|
}" \
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases")
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases")
|
||||||
|
|
||||||
|
echo "Gitea API response: $RELEASE"
|
||||||
|
|
||||||
RELEASE_ID=$(echo $RELEASE | python -c "import sys,json; print(json.load(sys.stdin)['id'])")
|
RELEASE_ID=$(echo $RELEASE | python -c "import sys,json; print(json.load(sys.stdin)['id'])")
|
||||||
|
|
||||||
# Upload all built wheels and tarballs
|
|
||||||
for FILE in packages/foreignthon/dist/* packages/langs/es/dist/*; do
|
for FILE in packages/foreignthon/dist/* packages/langs/es/dist/*; do
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Authorization: token $GIT_RELEASE_TOKEN" \
|
-H "Authorization: token $GIT_RELEASE_TOKEN" \
|
||||||
|
|||||||
Reference in New Issue
Block a user