diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 6f5be90..f9956ce 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -23,7 +23,7 @@ jobs: cache: gradle - name: Set version variable run: echo "GITHUB_REF_NAME=$GITHUB_REF_NAME" >> $GITHUB_ENV - - name: Compile to maven local + - name: Compile to Maven Central env: VERSION_NAME: ${{ env.GITHUB_REF_NAME }} ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }} @@ -41,14 +41,6 @@ jobs: - build steps: - uses: actions/checkout@v3 - - name: Compress Sources - uses: a7ul/tar-action@v1.1.0 - id: compress - with: - command: c - files: | - ../jxl-coder - outPath: jxlcoder.tar.gz - uses: ncipollo/release-action@v1 with: bodyFile: 'CHANGELOG.md' \ No newline at end of file diff --git a/README.md b/README.md index 8a72afd..c358014 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,19 @@ encoder.addFrame(secondFrame, duration = 2000) // Duration in ms val compressedBuffer: ByteArray = encoder.encode() // Do something with buffer ``` -## Add Jitpack repository +# Add to project + +```groovy +implementation 'io.github.awxkee:jxl-coder:2.2.0' // or any version above picker from release tags + +// Glide JPEG XL plugin if you need one +implementation 'io.github.awxkee:jxl-coder-glide:2.2.0' // or any version above picker from release tags + +// Coil JPEG XL plugin if you need one +implementation 'io.github.awxkee:jxl-coder-coil:2.2.0' // or any version above picker from release tags +``` + +### ~~Add Jitpack repository~~ Deprecated since 2.2.0, from 2.2.0 only Maven central will receive support ```groovy repositories { diff --git a/gradle.properties b/gradle.properties index d6a45ec..c11c5a5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -24,3 +24,4 @@ android.nonTransitiveRClass=true SONATYPE_HOST=CENTRAL_PORTAL RELEASE_SIGNING_ENABLED=true +SONATYPE_AUTOMATIC_RELEASE=true