This commit is contained in:
@@ -41,8 +41,8 @@ jobs:
|
|||||||
echo "APK file: $APK_FILE"
|
echo "APK file: $APK_FILE"
|
||||||
|
|
||||||
# Use the token from secrets
|
# Use the token from secrets
|
||||||
if [ -z "${{ secrets.GITHUB_TOKEN }}" ]; then
|
if [ -z "${{ secrets.GITEATOKEN }}" ]; then
|
||||||
echo "ERROR: No GITHUB_TOKEN found"
|
echo "ERROR: No GITEATOKEN found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
RELEASE_RESP=$(curl -s -X POST "https://git-dangilcal.duckdns.org/api/v1/repos/dangilcal/Helldivers-app-movil/releases" \
|
RELEASE_RESP=$(curl -s -X POST "https://git-dangilcal.duckdns.org/api/v1/repos/dangilcal/Helldivers-app-movil/releases" \
|
||||||
-H "accept: application/json" \
|
-H "accept: application/json" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
||||||
-d "{\"tag_name\": \"${TAG_NAME}\", \"name\": \"Release ${TAG_NAME}\", \"draft\": false, \"prerelease\": false}")
|
-d "{\"tag_name\": \"${TAG_NAME}\", \"name\": \"Release ${TAG_NAME}\", \"draft\": false, \"prerelease\": false}")
|
||||||
|
|
||||||
echo "Release response: $RELEASE_RESP"
|
echo "Release response: $RELEASE_RESP"
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
UPLOAD_RESP=$(curl -s -X POST "https://git-dangilcal.duckdns.org/api/v1/repos/dangilcal/Helldivers-app-movil/releases/${RELEASE_ID}/assets" \
|
UPLOAD_RESP=$(curl -s -X POST "https://git-dangilcal.duckdns.org/api/v1/repos/dangilcal/Helldivers-app-movil/releases/${RELEASE_ID}/assets" \
|
||||||
-H "accept: application/json" \
|
-H "accept: application/json" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
||||||
-F "attachment=@${APK_FILE}")
|
-F "attachment=@${APK_FILE}")
|
||||||
|
|
||||||
echo "Upload response: $UPLOAD_RESP"
|
echo "Upload response: $UPLOAD_RESP"
|
||||||
|
|||||||
Reference in New Issue
Block a user