Skip to content

Commit

Permalink
build: Setup for JitPack
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Mar 20, 2024
1 parent d8f8166 commit 6d2e863
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/autojitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: AutoJitpack

on:
push:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: web3j/substr-action@e448c146620c370c177a13787abc1d21712a1440
id: jitpackhash
with:
value: ${{ github.sha }}
start: 0
length: 10
- uses: badasintended/autojitpack@07e74255c2fe5f3353477da9ee7b5767a87d390c
with:
version: ${{ steps.jitpackhash.outputs.result }}
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.8.0"
id("org.jetbrains.dokka") version "1.6.10" apply false
id("gg.essential.defaults")
id("maven-publish")
}

kotlin.jvmToolchain {
Expand Down
7 changes: 7 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
jdk:
- openjdk16
before_install:
- sdk install java 16.0.2-tem
- sdk use java 16.0.2-tem
install:
- ./gradlew publishToMavenLocal

0 comments on commit 6d2e863

Please sign in to comment.