Skip to content

Commit eabd5cd

Browse files
committed
dry_run
1 parent acbb712 commit eabd5cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/maven-central-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
sed -i "s/version = .*/version = \"${{ github.event.inputs.version }}\"/" build.gradle.kts
123123
124124
- name: Publish to Maven Central
125-
if: github.event_name == 'release' || github.event.inputs.dry_run != 'true'
125+
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'false')
126126
run: |
127127
cd bindings/kotlin
128128
./gradlew publish --no-daemon --no-parallel
@@ -133,7 +133,7 @@ jobs:
133133
ORG_GRADLE_PROJECT_BASE64_ENCODED_ASCII_ARMORED_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_BASE64_ENCODED_ASCII_ARMORED_SIGNING_KEY }}
134134

135135
- name: Dry run - Local publish only
136-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true'
136+
if: github.event_name != 'release' && (github.event_name != 'workflow_dispatch' || github.event.inputs.dry_run == 'true')
137137
run: |
138138
cd bindings/kotlin
139139
echo "Dry run: Publishing to local Maven repository only"

0 commit comments

Comments
 (0)