From bccb4678eaccff42b327107681f354957c152e25 Mon Sep 17 00:00:00 2001 From: Eternal <46586052@users.noreply.github.com> Date: Tue, 26 Jan 2021 08:06:40 -0500 Subject: [PATCH 1/2] add github build checks and release functionality & update to 0.6 loom snapshot --- .github/workflows/build_check.yml | 21 ++++++++++++ .github/workflows/release_on_github.yml | 44 +++++++++++++++++++++++++ build.gradle | 7 +++- 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_check.yml create mode 100644 .github/workflows/release_on_github.yml diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml new file mode 100644 index 0000000..3c65427 --- /dev/null +++ b/.github/workflows/build_check.yml @@ -0,0 +1,21 @@ +name: Build Check + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Change wrapper permissions + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build diff --git a/.github/workflows/release_on_github.yml b/.github/workflows/release_on_github.yml new file mode 100644 index 0000000..3897d0b --- /dev/null +++ b/.github/workflows/release_on_github.yml @@ -0,0 +1,44 @@ +name: Create GitHub Release + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Change wrapper permissions + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + + - name: Upload Release Asset + id: upload-release-asset + uses: csexton/release-asset-action@v2 + with: + release-url: ${{ steps.create_release.outputs.upload_url }} + github-token: ${{ secrets.GITHUB_TOKEN }} + pattern: ./build/libs/!(*-dev*).jar diff --git a/build.gradle b/build.gradle index dd32d69..390b251 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'fabric-loom' version '0.2.7-SNAPSHOT' + id 'fabric-loom' version '0.6-SNAPSHOT' id 'maven-publish' id 'com.wynprice.cursemaven' version '2.1.5' } @@ -12,10 +12,14 @@ version = "${project.mod_version}-${project.minecraft_version}" group = project.maven_group repositories { + maven { + name = "CurseForge" + url = "https://minecraft.curseforge.com/api/maven/" maven { url "http://server.bbkr.space:8081/artifactory/libs-release" } } +// dependencies { //to change the versions see the gradle.properties file @@ -84,3 +88,4 @@ publishing { mavenLocal() } } +} \ No newline at end of file From 2a97edcb16b26145dd24b90da43ef0f880e56592 Mon Sep 17 00:00:00 2001 From: Eternal <46586052@users.noreply.github.com> Date: Tue, 26 Jan 2021 08:26:24 -0500 Subject: [PATCH 2/2] increment versioning for 1.16.5 release --- gradle.properties | 6 +++--- src/main/resources/fabric.mod.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 226a756..1188c02 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,9 +7,9 @@ archives_base_name = inventorytabs # Fabric Properties # check these on https://fabricmc.net/use -minecraft_version=1.16.4 -yarn_mappings=1.16.4+build.7 -loader_version=0.10.8 +minecraft_version=1.16.5 +yarn_mappings=1.16.5+build.3 +loader_version=0.11.1 # Dependencies # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index f314ceb..ec3cd8c 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -33,7 +33,7 @@ "depends": { "fabricloader": ">=0.7.4", "fabric": "*", - "minecraft": "1.16.4" + "minecraft": "1.16.5" }, "suggests": { "flamingo": "*"