-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
142ed4d
commit 9a8b313
Showing
7 changed files
with
69 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build and test PRs | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- synchronize | ||
- opened | ||
- ready_for_review | ||
- reopened | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1000 | ||
fetch-tags: true | ||
|
||
- name: Setup JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
|
||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: read | ||
statuses: write | ||
|
||
jobs: | ||
build: | ||
uses: neoforged/actions/.github/workflows/gradle-publish.yml@main | ||
with: | ||
java: 8 | ||
pre_gradle_tasks: 'licenseFormat build' | ||
gradle_tasks: 'publish' | ||
secrets: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
|
||
MAVEN_USER: ${{ secrets.MAVEN_USER }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
|
||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_KEY_PASSWORD: ${{ secrets.GPG_KEY_PASSWORD }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ plugins { | |
id 'com.github.johnrengelman.shadow' version '8.1.1' | ||
id 'com.github.ben-manes.versions' version '0.47.0' | ||
id 'net.neoforged.gradleutils' version '2.+' | ||
id 'signing' | ||
} | ||
|
||
group = 'net.neoforged' | ||
|
@@ -128,8 +129,10 @@ publishing { | |
|
||
developers { | ||
developer { | ||
id = 'LexManos' | ||
name = 'Lex Manos' | ||
id = 'neoforged' | ||
name = 'NeoForged' | ||
email = '[email protected]' | ||
url = 'https://github.com/NeoForged/' | ||
} | ||
} | ||
} | ||
|
@@ -139,6 +142,15 @@ publishing { | |
} | ||
} | ||
|
||
if (System.getenv('GPG_PRIVATE_KEY')) { | ||
signing { | ||
final signingKey = System.getenv('GPG_PRIVATE_KEY') ?: '' | ||
final signingPassword = System.getenv('GPG_KEY_PASSWORD') ?: '' | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign publishing.publications.mavenJava | ||
} | ||
} | ||
|
||
changelog { | ||
fromTag '2.0' | ||
} |