mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-01 00:10:19 +01:00
fix: reenable pr tests and only run publish on source branches
(cherry picked from commit 47dfb29c20d39d70c523746f60fc75a48e93905e)
This commit is contained in:
parent
8aedd5fc26
commit
a544b9f344
13
.github/workflows/pr.yml
vendored
13
.github/workflows/pr.yml
vendored
@ -5,7 +5,7 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -26,14 +26,13 @@ jobs:
|
|||||||
# Ignore some of the paths when caching Maven Local repository
|
# Ignore some of the paths when caching Maven Local repository
|
||||||
maven-local-ignore-paths: |
|
maven-local-ignore-paths: |
|
||||||
net/minestom/
|
net/minestom/
|
||||||
# TODO: reenable
|
- name: Build Minestom
|
||||||
# - name: Build Minestom
|
run: ./gradlew classes testClasses
|
||||||
# run: ./gradlew classes testClasses
|
- name: Run Minestom tests
|
||||||
# - name: Run Minestom tests
|
run: ./gradlew test
|
||||||
# run: ./gradlew test
|
|
||||||
publish:
|
publish:
|
||||||
needs: [ build ]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'hollow-cube'
|
||||||
env:
|
env:
|
||||||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
|
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
|
||||||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|
||||||
|
Loading…
Reference in New Issue
Block a user