diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ecb9028 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Publish mod + +on: + push: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Set up JDK 21 + uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0 + with: + java-version: '21' + distribution: 'temurin' + - uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0 + - run: ./gradlew build modrinth + env: + MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} + - run: ./gradlew build publish + env: + MAVEN_REPO: ${{ secrets.MAVEN_REPO }} + MAVEN_AUTH_HEADER: ${{ secrets.MAVEN_AUTH_HEADER }} + MAVEN_AUTH_TOKEN: ${{ secrets.MAVEN_AUTH_TOKEN }} diff --git a/build.gradle b/build.gradle index 49e4f14..47ffa0e 100644 --- a/build.gradle +++ b/build.gradle @@ -57,7 +57,7 @@ dependencies { include "com.github.philippheuer.events4j:events4j-api:0.12.2" include "com.github.philippheuer.events4j:events4j-bom:0.12.2" include "com.github.philippheuer.events4j:events4j-core:0.12.2" - include "com.github.philippheuer.events4j:events4j-handler-simple:0.12.1" + include "com.github.philippheuer.events4j:events4j-handler-simple:0.12.2" include "com.github.tony19:named-regexp:1.0.0" include "com.google.errorprone:error_prone_annotations:2.10.0" include "com.neovisionaries:nv-websocket-client:2.14" @@ -68,14 +68,14 @@ dependencies { include "com.squareup.okio:okio-jvm:3.6.0" include "commons-configuration:commons-configuration:1.10" include "commons-lang:commons-lang:2.6" - include "io.github.openfeign:feign-core:13.3" - include "io.github.openfeign:feign-hystrix:13.3" - include "io.github.openfeign:feign-jackson:13.3" - include "io.github.openfeign:feign-okhttp:13.3" - include "io.github.openfeign:feign-slf4j:13.3" - include "io.github.xanthic.cache:cache-api:0.6.0" - include "io.github.xanthic.cache:cache-core:0.6.0" - include "io.github.xanthic.cache:cache-provider-caffeine:0.6.0" + include "io.github.openfeign:feign-core:13.4" + include "io.github.openfeign:feign-hystrix:13.4" + include "io.github.openfeign:feign-jackson:13.4" + include "io.github.openfeign:feign-okhttp:13.4" + include "io.github.openfeign:feign-slf4j:13.4" + include "io.github.xanthic.cache:cache-api:0.6.1" + include "io.github.xanthic.cache:cache-core:0.6.1" + include "io.github.xanthic.cache:cache-provider-caffeine:0.6.1" include "io.reactivex:rxjava:1.2.0" include "net.fabricmc:fabric-language-kotlin:1.10.19+kotlin.1.9.23" include "org.hdrhistogram:HdrHistogram:2.1.9" diff --git a/gradle.properties b/gradle.properties index f575707..2ac3462 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings=1.18.2+build.2 loader_version=0.14.19 # Mod Properties -mod_version=1.7.0 -library_version=1.21.0 +mod_version=1.8.0 +library_version=1.22.0 maven_group=com.github.twitch4j archives_base_name=twitch4j-fabric