Skip to content

Commit 1699cbd

Browse files
committed
Optimize CI and release workflows
- Remove unnecessary JitPack trigger from CI workflow - CI should focus on testing, not external builds - Keep JitPack monitoring in release workflow with simplified success detection - Any status:"ok" response is treated as success
1 parent b40f5f7 commit 1699cbd

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,4 @@ jobs:
3333
- name: Test integration tests
3434
run: |
3535
cd integration-tests
36-
mvn clean test
37-
38-
jitpack-test:
39-
runs-on: ubuntu-latest
40-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
41-
42-
steps:
43-
- name: Trigger JitPack build for main branch
44-
run: |
45-
echo "Triggering JitPack build for main-SNAPSHOT"
46-
curl -s "https://jitpack.io/com/github/wassertim/dynamodb-toolkit/main-SNAPSHOT" || true
36+
mvn clean test

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,9 @@ jobs:
163163
status_response=$(curl -s "https://jitpack.io/api/builds/com.github.wassertim/dynamodb-toolkit/v$NEW_VERSION")
164164
echo "Status response: $status_response"
165165
166-
if [[ "$status_response" == *'"status":"ok"'* ]] && [[ "$status_response" != *'"message":"Not found"'* ]]; then
166+
if [[ "$status_response" == *'"status":"ok"'* ]]; then
167167
echo "✅ JitPack build completed successfully!"
168168
echo "📦 Artifact available at: https://jitpack.io/#wassertim/dynamodb-toolkit/v$NEW_VERSION"
169-
exit 0
170-
elif [[ "$status_response" == *'"status":"ok"'* ]] && [[ "$status_response" == *'"message":"Not found"'* ]]; then
171-
echo "✅ JitPack build completed successfully (build finished, artifacts processed)!"
172-
echo "📦 Artifact available at: https://jitpack.io/#wassertim/dynamodb-toolkit/v$NEW_VERSION"
173169
echo "🔗 Build log: https://jitpack.io/com/github/wassertim/dynamodb-toolkit/v$NEW_VERSION/build.log"
174170
exit 0
175171
elif [[ "$status_response" == *'"status":"error"'* ]]; then

0 commit comments

Comments
 (0)