Skip to content

Commit

Permalink
Only publish jar on successful tests
Browse files Browse the repository at this point in the history
  • Loading branch information
renao authored Mar 6, 2024
1 parent acb461d commit bac0eb2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
run: ./gradlew build
- name: Create Release Jar (Gradle Wrapper)
run: ./gradlew jar
- name: Upload JAR
uses: actions/upload-artifact@v4
with:
name: "Editor.jar"
path: build/libs/*.jar

test:
runs-on: ubuntu-latest
Expand All @@ -40,3 +35,15 @@ jobs:
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Test with Gradle Wrapper
run: ./gradlew test

deploy-jar:
runs-on: ubuntu-latest
needs: [build, test]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Upload JAR
uses: actions/upload-artifact@v4
with:
name: "Editor.jar"
path: build/libs/*.jar

0 comments on commit bac0eb2

Please sign in to comment.