From a544b9f344c61739b9b459837b9ea3b4ac380761 Mon Sep 17 00:00:00 2001 From: mworzala Date: Tue, 6 Feb 2024 22:24:04 -0500 Subject: [PATCH] fix: reenable pr tests and only run publish on source branches (cherry picked from commit 47dfb29c20d39d70c523746f60fc75a48e93905e) --- .github/workflows/pr.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 7314f0b55..fc6175578 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -5,7 +5,7 @@ on: branches: [ master ] jobs: - build: + tests: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -26,14 +26,13 @@ jobs: # Ignore some of the paths when caching Maven Local repository maven-local-ignore-paths: | net/minestom/ - # TODO: reenable -# - name: Build Minestom -# run: ./gradlew classes testClasses -# - name: Run Minestom tests -# run: ./gradlew test + - name: Build Minestom + run: ./gradlew classes testClasses + - name: Run Minestom tests + run: ./gradlew test publish: - needs: [ build ] runs-on: ubuntu-latest + if: github.repository_owner == 'hollow-cube' env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}