@@ -107,39 +107,4 @@ jobs:
107107 draft : false # 즉시 공개
108108 prerelease : false # 정식 릴리즈로 설정
109109 env :
110- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
111-
112- # Jitpack 배포
113- - name : Trigger JitPack build
114- run : |
115- OWNER="${{ github.repository_owner }}"
116- REPO="${{ github.event.repository.name }}"
117- TAG="${{ needs.check-version-change.outputs.new-version }}"
118- echo "Triggering JitPack build for $OWNER/$REPO@$TAG"
119- curl -s -X POST "https://jitpack.io/api/builds/${OWNER}/${REPO}" \
120- -H "Content-Type: application/json" \
121- -d "{\"tag\":\"${TAG}\"}"
122-
123- # Jitpack 배포 완료 체크
124- - name : Wait for JitPack build to finish
125- run : |
126- OWNER="${{ github.repository_owner }}"
127- REPO="${{ github.event.repository.name }}"
128- TAG="${{ needs.check-version-change.outputs.new-version }}"
129- echo "Waiting for JitPack build: $OWNER/$REPO@$TAG"
130- for i in {1..40}; do
131- STATUS_JSON=$(curl -s "https://jitpack.io/api/builds/${OWNER}/${REPO}/${TAG}")
132- STATUS=$(echo "$STATUS_JSON" | jq -r '.status // empty')
133- echo "JitPack status: $STATUS"
134- if [ "$STATUS" = "done" ]; then
135- echo "✅ JitPack build succeeded!"
136- exit 0
137- elif [ "$STATUS" = "error" ]; then
138- echo "❌ JitPack build failed"
139- echo "$STATUS_JSON"
140- exit 1
141- fi
142- sleep 10
143- done
144- echo "⏰ Timed out waiting for JitPack build"
145- exit 1
110+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments