Skip to content

Commit

Permalink
1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cjsah committed Jul 1, 2022
1 parent 747ebf1 commit 312e793
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [ 1.19, 1.18.2 ]
steps:
- name: Check out
uses: actions/checkout@v2
- name: Change branch
run: |
git fetch
git checkout ${{ matrix.branch }}
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Set build number
run: sed -i "s/undefined/$GITHUB_RUN_NUMBER/g" gradle.properties
- name: Give permission
run: chmod +x gradlew
- name: Build with Gradle
Expand All @@ -32,7 +41,7 @@ jobs:
with:
name: build-artifacts
path: build/libs/
- name: Upload zip to Github
- name: Upload jar to Github release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ plugins {
id 'maven-publish'
}

version = project.mod_version
archivesBaseName = 'SkyLand'
version = "${project.mod_version}-mc${project.mc_version}"
group = project.maven_group

if (project.build_number != 'undefined') version += "+build.${project.build_number}"

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

Expand All @@ -23,10 +26,10 @@ dependencies {
}

processResources {
inputs.property "version", project.version
inputs.property "version", project.mod_version

filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.mod_version
}
}

Expand All @@ -40,7 +43,7 @@ java {

jar {
from("LICENSE") {
rename { "${it}_${project.name}" }
rename { "${it}_$archivesBaseName" }
}
}

Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ org.gradle.jvmargs=-Xmx1G
mc_version=1.19
yarn_version=1.19+build.2
fabric_version=0.14.7
mod_version=1.1.3
mod_version=1.1.4
maven_group=dev.dubhe
build_number=undefined

0 comments on commit 312e793

Please sign in to comment.