Skip to content

Commit

Permalink
Add GH packages publishing back in, version bump to alpha 8
Browse files Browse the repository at this point in the history
  • Loading branch information
robotgryphon committed Feb 11, 2021
1 parent 70f3bc6 commit 4ba4279
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ba4279

Please sign in to comment.