From 445a53c66f51de2831324a74177b5cc773588423 Mon Sep 17 00:00:00 2001 From: TheOnlyTails <65342367+TheOnlyTails@users.noreply.github.com> Date: Thu, 8 Apr 2021 21:22:17 +0300 Subject: [PATCH 1/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1af37dc..141e578 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ repositories { } dependencies { - implementation fg.deobf(project.dependencies.create(group: "com.github.TheOnlyTails", name: "LootTables", version: VERSION) { + implementation fg.deobf(project.dependencies.create(group: "com.theonlytails", name: "loottables", version: VERSION) { transitive = false }) } @@ -32,7 +32,7 @@ repositories { dependencies { implementation(project.the() - .deobf(project.dependencies.create(group = "com.github.TheOnlyTails", name = "LootTables", version = VERSION) + .deobf(project.dependencies.create(group = "com.theonlytails", name = "loottables", version = VERSION) .apply { isTransitive = false } From 5672b7e10676125fb80a3c78213adef02fb531ba Mon Sep 17 00:00:00 2001 From: TheOnlyTails <65342367+TheOnlyTails@users.noreply.github.com> Date: Thu, 8 Apr 2021 21:26:04 +0300 Subject: [PATCH 2/3] Replaced the JitPack badge with a Maven Central one --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 141e578..a3c1e39 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![](https://jitpack.io/v/TheOnlyTails/LootTables.svg)](https://jitpack.io/#TheOnlyTails/LootTables) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.theonlytails/loottables/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.theonlytails/loottables) # LootTables @@ -8,7 +8,7 @@ For documentation and usage instructions, please take a look at the [wiki](https ## Installation -###### Don't forget to replace the VERSION key with the version in the JitPack badge at the top! +###### Don't forget to replace the VERSION key with the version in the top with the Maven Central badge at the top! #### Gradle/Groovy From 69dac62c27b748fb47b33eaf0c2ee1109d105856 Mon Sep 17 00:00:00 2001 From: TheOnlyTails Date: Mon, 17 May 2021 19:29:01 +0300 Subject: [PATCH 3/3] Update publishing.yml --- .github/workflows/publishing.yml | 47 ++++++++++++++++---------------- 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/.github/workflows/publishing.yml b/.github/workflows/publishing.yml index 53413c1..c18b147 100644 --- a/.github/workflows/publishing.yml +++ b/.github/workflows/publishing.yml @@ -1,35 +1,34 @@ -name: Publish package to the Maven Central Repository +name: Publish Release + on: - release: - types: [created] + push: + tags: + - '*' + jobs: publish: + runs-on: ubuntu-latest + steps: - name: Checkout uses: actions/checkout@v2 - - - name: Set up Java - uses: actions/setup-java@v2 - with: - distribution: 'adopt' - java-version: '8' - - - name: Cache Gradle packages - uses: actions/cache@v2 - with: - path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - restore-keys: ${{ runner.os }}-gradle - - name: Grant execute permission for gradlew - run: chmod +x gradlew + - name: Install JDK 8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 - - name: Build with Gradle - run: ./gradlew build + - name: Upload release + run: ./gradlew uploadArchives --no-daemon --no-parallel + env: + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryPassword: ${{ secrets.SIGNING_SECRET }} - # Publish to Sonatype OSS - - name: Deploy - run: .build/deploy.sh + - name: Publish release + run: ./gradlew closeAndReleaseRepository --no-daemon --no-parallel env: - GPG_SECRET: ${{ secrets.GPG_SECRET }} + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_PASSWORD }}