diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml index 3640dbc..fe1e1dd 100644 --- a/.github/workflows/releases.yaml +++ b/.github/workflows/releases.yaml @@ -17,12 +17,17 @@ jobs: run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build + - name: Find correct JAR + id: find-jar + run: | + output="$(find build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")" + echo "::set-output name=jarname::$output" - name: Upload to the GitHub release uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ github.event.release.upload_url }} - asset_path: build/libs/LangHelper.jar - asset_name: LangHelper.jar + asset_path: build/libs/${{ steps.find-jar.outputs.jarname }} + asset_name: ${{ steps.find-jar.outputs.jarname }} asset_content_type: application/java-archive diff --git a/build.gradle b/build.gradle index 7979df7..74061bb 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { allprojects { group = "ru.boomearo" - version = "1.5.4" + version = "1.5.5" } subprojects { diff --git a/jitpack.yml b/jitpack.yml index b105a7f..300375c 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,4 +1,5 @@ jdk: - openjdk17 install: + - chmod +x gradlew - ./gradlew clean build -Pgroup=com.github.BoomEaro publishToMavenLocal \ No newline at end of file