mirror of
https://github.com/GeyserMC/Rainbow.git
synced 2025-12-19 14:59:16 +00:00
Change jar name to just "rainbow.jar", re-enable downloads api publishing
This commit is contained in:
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get Release Info
|
- name: Get Release Info
|
||||||
id: release-info
|
id: release-info
|
||||||
uses: GeyserMC/actions/previous-release@feature/globs
|
uses: GeyserMC/actions/previous-release@master
|
||||||
with:
|
with:
|
||||||
data: ${{ vars.RELEASEACTION_PREVRELEASE }}
|
data: ${{ vars.RELEASEACTION_PREVRELEASE }}
|
||||||
|
|
||||||
@@ -34,11 +34,11 @@ jobs:
|
|||||||
BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }}
|
BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }}
|
||||||
|
|
||||||
- name: Archive Artifacts
|
- name: Archive Artifacts
|
||||||
uses: GeyserMC/actions/upload-multi-artifact@feature/globs
|
uses: GeyserMC/actions/upload-multi-artifact@master
|
||||||
if: success()
|
if: success()
|
||||||
with:
|
with:
|
||||||
artifacts: |
|
artifacts: |
|
||||||
rainbow:build/libs/rainbow-*.jar
|
rainbow:build/libs/rainbow.jar
|
||||||
|
|
||||||
- name: Get Version
|
- name: Get Version
|
||||||
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Rainbow' }}
|
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Rainbow' }}
|
||||||
@@ -49,28 +49,28 @@ jobs:
|
|||||||
|
|
||||||
- name: Get Release Metadata
|
- name: Get Release Metadata
|
||||||
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Rainbow' }}
|
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Rainbow' }}
|
||||||
uses: GeyserMC/actions/release@feature/globs
|
uses: GeyserMC/actions/release@master
|
||||||
id: metadata
|
id: metadata
|
||||||
with:
|
with:
|
||||||
appID: ${{ secrets.RELEASE_APP_ID }}
|
appID: ${{ secrets.RELEASE_APP_ID }}
|
||||||
appPrivateKey: ${{ secrets.RELEASE_APP_PK }}
|
appPrivateKey: ${{ secrets.RELEASE_APP_PK }}
|
||||||
files: |
|
files: |
|
||||||
rainbow:build/libs/rainbow-*.jar
|
rainbow:build/libs/rainbow.jar
|
||||||
releaseEnabled: true
|
releaseEnabled: false
|
||||||
saveMetadata: true
|
saveMetadata: true
|
||||||
releaseProject: 'rainbow'
|
releaseProject: 'rainbow'
|
||||||
releaseVersion: ${{ steps.get-version.outputs.VERSION }}
|
releaseVersion: ${{ steps.get-version.outputs.VERSION }}
|
||||||
|
|
||||||
# - name: Publish to Downloads API
|
- name: Publish to Downloads API
|
||||||
# if: ${{ success() && github.repository == 'GeyserMC/Rainbow' && github.ref_name == 'master' }}
|
if: ${{ success() && github.repository == 'GeyserMC/Rainbow' && github.ref_name == 'master' }}
|
||||||
# uses: GeyserMC/actions/upload-release@feature/globs
|
uses: GeyserMC/actions/upload-release@master
|
||||||
# with:
|
with:
|
||||||
# username: ${{ vars.DOWNLOADS_USERNAME }}
|
username: ${{ vars.DOWNLOADS_USERNAME }}
|
||||||
# privateKey: ${{ secrets.DOWNLOADS_PRIVATE_KEY }}
|
privateKey: ${{ secrets.DOWNLOADS_PRIVATE_KEY }}
|
||||||
# host: ${{ secrets.DOWNLOADS_SERVER_IP }}
|
host: ${{ secrets.DOWNLOADS_SERVER_IP }}
|
||||||
# files: |
|
files: |
|
||||||
# build/libs/rainbow-*.jar - TODO does not support globs!
|
build/libs/rainbow.jar
|
||||||
# changelog: ${{ steps.metadata.outputs.body }}
|
changelog: ${{ steps.metadata.outputs.body }}
|
||||||
|
|
||||||
# - name: Publish to Modrinth
|
# - name: Publish to Modrinth
|
||||||
# if: ${{ success() && github.repository == 'GeyserMC/rainbow' && github.ref_name == 'master' }}
|
# if: ${{ success() && github.repository == 'GeyserMC/rainbow' && github.ref_name == 'master' }}
|
||||||
@@ -87,4 +87,4 @@ jobs:
|
|||||||
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
|
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
body: ${{ steps.metadata.outputs.body }}
|
body: ${{ steps.metadata.outputs.body }}
|
||||||
includeDownloads: false
|
includeDownloads: true
|
||||||
|
|||||||
14
build.gradle
14
build.gradle
@@ -3,14 +3,6 @@ plugins {
|
|||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
version = project.mod_version
|
|
||||||
group = project.maven_group
|
|
||||||
|
|
||||||
base {
|
|
||||||
archivesName = project.archives_base_name
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url = "https://maven.parchmentmc.org"
|
url = "https://maven.parchmentmc.org"
|
||||||
@@ -30,13 +22,13 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
inputs.property "version", project.version
|
inputs.property "version", project.mod_version
|
||||||
inputs.property "supported_versions", project.supported_versions
|
inputs.property "supported_versions", project.supported_versions
|
||||||
inputs.property "loader_version", project.loader_version
|
inputs.property "loader_version", project.loader_version
|
||||||
filteringCharset "UTF-8"
|
filteringCharset "UTF-8"
|
||||||
|
|
||||||
filesMatching("fabric.mod.json") {
|
filesMatching("fabric.mod.json") {
|
||||||
expand "version": project.version,
|
expand "version": project.mod_version,
|
||||||
"supported_versions": project.supported_versions,
|
"supported_versions": project.supported_versions,
|
||||||
"loader_version": project.loader_version
|
"loader_version": project.loader_version
|
||||||
}
|
}
|
||||||
@@ -55,7 +47,7 @@ java {
|
|||||||
if (JavaVersion.current() < javaVersion) {
|
if (JavaVersion.current() < javaVersion) {
|
||||||
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
|
||||||
}
|
}
|
||||||
//withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
|
|||||||
Reference in New Issue
Block a user