Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
fix: reenable pr tests and only run publish on source branches
Browse files Browse the repository at this point in the history
  • Loading branch information
mworzala committed Feb 7, 2024
1 parent 0494ee0 commit 47dfb29
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ main ]

jobs:
build:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -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 }}
Expand Down

0 comments on commit 47dfb29

Please sign in to comment.