Skip to content

Commit 4afd842

Browse files
committed
Ensure manual workflow runs still publish
1 parent b53567e commit 4afd842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
3232
run: ./gradlew build --refresh-dependencies
3333
publish:
34-
if: github.event_name == 'push'
34+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
3535
needs: build
3636
runs-on: ubuntu-latest
3737
permissions:
@@ -58,7 +58,7 @@ jobs:
5858
MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }}
5959
run: ./gradlew publish
6060
docs:
61-
if: github.event_name == 'push'
61+
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
6262
needs: build
6363
runs-on: ubuntu-latest
6464
permissions:

0 commit comments

Comments
 (0)