Skip to content

Commit 2eec9bf

Browse files
Fix conditional execution in publish workflow
1 parent 8cda277 commit 2eec9bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
run: mvn --no-transfer-progress test
2727

2828
build_jars:
29-
#if: success()
30-
#needs: [ build_and_test ]
29+
if: success()
30+
needs: [ build_and_test ]
3131
name: Package and upload package to Maven Central
3232
runs-on: ubuntu-latest
3333
env:
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Package
5353
run: |
54-
mvn --no-transfer-progress -DskipTests=true clean package
54+
mvn --no-transfer-progress -DskipTests clean package
5555
5656
- name: Publish to the Maven Central Repository
5757
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')

0 commit comments

Comments
 (0)