diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c4837fd..e89696d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -249,6 +249,14 @@ jobs: run: ./gradlew --info libertyPackage working-directory: package-jar + - name: Publish with Gradle + if: ${{ github.ref == 'refs/heads/staging' || github.ref == 'refs/heads/next' }} + run: ./gradlew --info publish + working-directory: package-jar + env: + ORG_GRADLE_PROJECT_galasaNexusUsername: ${{ secrets.NEXUS_USERNAME }} + ORG_GRADLE_PROJECT_galasaNexusPassword: ${{ secrets.NEXUS_PASSWORD }} + - name: Upload JAR uses: actions/upload-artifact@v3 with: