0.2.3-t8
Deploy to FTP / deploy (push) Successful in 5s
Build APK / build (push) Failing after 1m56s

This commit is contained in:
Sebastian Molenda
2026-05-29 22:26:03 +02:00
parent 1385b3ace0
commit b2721c2ec3
+10 -12
View File
@@ -57,22 +57,20 @@ jobs:
API_BASE="${GITEA_SERVER}/api/v1" API_BASE="${GITEA_SERVER}/api/v1"
REMOTE_URL=$(git config --get remote.origin.url) # Gitea Actions są kompatybilne z GITHUB_ envs
echo "Remote URL: $REMOTE_URL" OWNER="${{ github.repository_owner }}"
REPO_NAME=$(echo "${{ github.repository }}" | cut -d/ -f2)
REPO_FULL=$(echo "$REMOTE_URL" \ TAG="${{ github.ref_name }}"
| sed -E 's#https?://[^/]+/##' \
| sed 's/\.git$//')
OWNER=$(echo "$REPO_FULL" | cut -d/ -f1)
REPO_NAME=$(echo "$REPO_FULL" | cut -d/ -f2)
echo "URL: $API_BASE/repos/$OWNER/$REPO_NAME/releases"
echo "OWNER=$OWNER" echo "OWNER=$OWNER"
echo "REPO_NAME=$REPO_NAME" echo "REPO_NAME=$REPO_NAME"
echo "TAG=$TAG"
TAG="${GITEA_REF_NAME}" if [ -z "$TAG" ]; then
echo "Error: TAG (ref_name) is empty. Ensure you pushed a tag."
echo "Creating release $TAG for $OWNER/$REPO_NAME" exit 1
fi
CREATE_RESPONSE=$(curl -s \ CREATE_RESPONSE=$(curl -s \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \