diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index 1268659..9809630 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -37,7 +37,7 @@ jobs: run: | pushd build/libs cp ${{ steps.exec.outputs.slimjar }} NiSCore-SLIM.jar - cp ${{ steps.exec.outputs.libszip }} NiSCore-libs.zip + cp ${{ steps.exec.outputs.libstar }} NiSCore-libs.tar.gz cp ${{ steps.exec.outputs.fatjar }} NiSCore-FAT.jar popd @@ -45,6 +45,6 @@ jobs: uses: ncipollo/release-action@v1 if: startsWith(github.ref, 'refs/tags/') with: - artifacts: build/libs/NiSCore-SLIM.jar,build/libs/NiSCore-libs.zip,build/libs/NiSCore-FAT.jar + artifacts: build/libs/NiSCore-SLIM.jar,build/libs/NiSCore-libs.tar.gz,build/libs/NiSCore-FAT.jar name: NiSCore ${{ steps.exec.outputs.version }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.gradle b/build.gradle index 261652d..bca8326 100644 --- a/build.gradle +++ b/build.gradle @@ -100,9 +100,11 @@ jar { // into tasks.jar.destinationDirectory.dir("libs") // } - finalizedBy task("zipLibs", type: Zip) { + finalizedBy task("tarLibs", type: Tar) { archiveBaseName = "$archivesBaseName-libs" + archiveExtension = "tar.gz" destinationDirectory = tasks.jar.destinationDirectory + compression = org.gradle.api.tasks.bundling.Compression.GZIP from configurations.compileJar } @@ -146,7 +148,7 @@ task createGitHubActionsVars() { onlyIf { isCiBuilding } doFirst { println "::set-output name=slimjar::${jar.archiveFileName.get()}" - println "::set-output name=libszip::${tasks.zipLibs.archiveFileName.get()}" + println "::set-output name=libstar::${tasks.tarLibs.archiveFileName.get()}" println "::set-output name=fatjar::${fatJar.archiveFileName.get()}" println "::set-output name=version::${project.version}" }