Skip to content

Commit 3d6981a

Browse files
committed
Revert "Publish snapshot always"
This reverts commit 04e7b46.
1 parent 04e7b46 commit 3d6981a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/build.main.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ workflow(
6767
id = "publish-snapshot",
6868
name = "Publish snapshot",
6969
runsOn = UbuntuLatest,
70+
condition = expr { "${github.ref} == 'refs/heads/main'" },
7071
env = mapOf(
7172
"ORG_GRADLE_PROJECT_sonatypeUsername" to expr("secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME"),
7273
"ORG_GRADLE_PROJECT_sonatypePassword" to expr("secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD"),

.github/workflows/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
env:
104104
ORG_GRADLE_PROJECT_sonatypeUsername: '${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}'
105105
ORG_GRADLE_PROJECT_sonatypePassword: '${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}'
106+
if: '${{ github.ref == ''refs/heads/main'' }}'
106107
steps:
107108
- id: 'step-0'
108109
uses: 'actions/checkout@v5'

0 commit comments

Comments
 (0)