Skip to content

Commit 85ff039

Browse files
committed
Build snapshots on push to main, fix a typo
1 parent 215a2af commit 85ff039

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/full-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
workflow_dispatch:
1515
# Allow running manually
1616
pull_request:
17-
types: [ labeled, synchronized ]
17+
types: [ labeled, synchronize ]
1818
jobs:
1919
build:
2020
if: ${{ !github.event.pull_request || contains(github.event.pull_request.labels.*.name, 'ready') }}
@@ -84,7 +84,7 @@ jobs:
8484
- name: Set up sonatype credentials
8585
# Using the same java version as above, set up a settings.xml file
8686
uses: actions/setup-java@v4
87-
if: ${{ github.event_name == 'schedule' && github.repository_owner == 'gwtproject' && matrix.java-version == '21' }}
87+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' && github.repository_owner == 'gwtproject' && matrix.java-version == '21' }}
8888
with:
8989
java-version: ${{ matrix.java-version }}
9090
distribution: 'temurin'
@@ -94,7 +94,7 @@ jobs:
9494
server-password: SONATYPE_PASSWORD
9595

9696
- name: Nightly builds should be deployed as snapshots to sonatype
97-
if: ${{ github.event_name == 'schedule' && github.repository_owner == 'gwtproject' && matrix.java-version == '21' }}
97+
if: ${{ github.event_name == 'push' && github.ref_name == 'main' && github.repository_owner == 'gwtproject' && matrix.java-version == '21' }}
9898
env:
9999
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
100100
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)