Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyTails committed May 17, 2021
2 parents ea2b6e2 + 69dac62 commit 14706cd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
47 changes: 23 additions & 24 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
@@ -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 }}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand All @@ -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
})
}
Expand All @@ -32,7 +32,7 @@ repositories {

dependencies {
implementation(project.the<DependencyManagementExtension>()
.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
}
Expand Down

0 comments on commit 14706cd

Please sign in to comment.