Compare commits

..

2 Commits

Author SHA1 Message Date
Timi
3d8168c726 fix CI create release
All checks were successful
CI/CD / build-deploy (pull_request) Successful in 19s
2026-01-19 17:22:02 +08:00
Timi
381d149cd2 fix CI nexus fail
Some checks failed
CI/CD / build-deploy (pull_request) Failing after 30s
2026-01-19 17:13:40 +08:00

View File

@@ -65,7 +65,9 @@ jobs:
-Djavadoc="$javadoc_jar" \
-DpomFile="./pom.xml" \
-Durl="https://nexus.imyeyu.com/repository/maven-releases/" \
-DrepositoryId="timi-nexus"
-DrepositoryId="timi-nexus" \
-Dhttps.protocols=TLSv1.2 \
-Djdk.tls.client.protocols=TLSv1.2
- name: Create release
if: ${{ success() && startsWith(github.event.pull_request.title, 'v') }}
env:
@@ -94,11 +96,12 @@ jobs:
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/json" \
-d "$payload")
release_id=$(echo "$response" | sed -n 's/.*"id":[ ]*\\([0-9][0-9]*\\).*/\\1/p' | head -n 1)
if [ -z "$release_id" ]; then
release_id=$(echo "$response" | grep -o '"id":[0-9]*' | head -n 1 | grep -o '[0-9]*')
if [ -z "$release_id" ] || echo "$response" | grep -q '"message"'; then
echo "Create release failed: $response"
exit 1
fi
echo "Release created: id=$release_id"
for asset_path in target/*.jar; do
asset_name=$(basename "$asset_path")
curl -sS -X POST "$api_url/$release_id/assets?name=$asset_name" \