diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml index 870e0933..dbec7bea 100644 --- a/.github/workflows/tagged-release.yml +++ b/.github/workflows/tagged-release.yml @@ -188,6 +188,11 @@ jobs: id: filename run: echo "::set-output name=fullpath::buildfiles/${{ needs.vars.outputs.mod_id }}-${{ needs.vars.outputs.mod_version }}.jar" + - name: Publish package + run: gradle publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create CurseForge Release uses: itsmeow/curseforge-upload@master with: diff --git a/build.gradle b/build.gradle index be3ee958..b975b5ec 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ archivesBaseName = mod_id sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. sourceSets { - main{ + main { resources { srcDir 'src/generated/resources' } @@ -208,14 +208,16 @@ artifacts { publishing { publications { - mavenJava(MavenPublication) { + maven(MavenPublication) { artifact jar + artifact apiJar } } repositories { + // GitHub Packages maven { name = "GitHubPackages" - url = "https://maven.pkg.github.com/robotgryphon/compact-machines" + url = "https://maven.pkg.github.com/compactmods/compactmachines" credentials { username = System.getenv("GITHUB_ACTOR") password = System.getenv("GITHUB_TOKEN") diff --git a/gradle.properties b/gradle.properties index 80fcda3a..90df4a46 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,11 +4,11 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false minecraft_version=1.16.4 -forge_version=35.1.13 +forge_version=35.1.37 mappings_version=20201028-1.16.3 mod_id=compactmachines -mod_version=4.0.0-alpha.7 +mod_version=4.0.0-alpha.8 # Dependencies and Libs jei_version=7.6.0.58