Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PssbleTrngle committed Jun 3, 2023
1 parent 31b928e commit 8503071
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,13 @@ jobs:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
CHANGELOG: ${{ github.event.release.body }}
CI: true

- name: Upload to github releases
if: ${{ github.event_name == 'release' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: svenstaro/upload-release-action@v2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: build/libs/sliceanddice-forge-${{ github.event.release.tag_name }}.jar
file: build/libs/sliceanddice-forge-${{ github.event.release.tag_name }}.jar
asset_name: sliceanddice-forge-${{ github.event.release.tag_name }}.jar
upload_url: ${{ github.event.release.upload_url }}
asset_content_type: application/java-archive
10 changes: 2 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import com.modrinth.minotaur.TaskModrinthSyncBody

import net.darkhax.curseforgegradle.TaskPublishCurseForge
import org.spongepowered.asm.gradle.plugins.MixinExtension
import java.time.LocalDateTime
Expand Down Expand Up @@ -68,7 +68,6 @@ base {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(17))
}
withSourcesJar()
withJavadocJar()
Expand Down Expand Up @@ -224,7 +223,7 @@ tasks.withType<Jar> {
}
}

tasks.jar {
tasks.withType<Jar> {
finalizedBy("reobfJar")
}

Expand Down Expand Up @@ -300,7 +299,6 @@ env["MODRINTH_TOKEN"]?.let { modrinthToken ->
loaders.set(listOf("forge"))
versionType.set(release_type)
uploadFile.set(tasks.jar.get())
syncBodyFrom.set(project.file("README.md").readText())
dependencies {
required.project("ordsPcFz")
required.project("LNytGWDc")
Expand All @@ -309,10 +307,6 @@ env["MODRINTH_TOKEN"]?.let { modrinthToken ->
}
}

tasks.named("modrinth") {
dependsOn(tasks.withType<TaskModrinthSyncBody>())
}

sonarqube {
properties {
property("sonar.projectVersion", mod_version)
Expand Down

0 comments on commit 8503071

Please sign in to comment.