Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/build_check.yml
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions .github/workflows/release_on_github.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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'
}
Expand All @@ -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
Expand Down Expand Up @@ -84,3 +88,4 @@ publishing {
mavenLocal()
}
}
}
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"depends": {
"fabricloader": ">=0.7.4",
"fabric": "*",
"minecraft": "1.16.4"
"minecraft": "1.16.5"
},
"suggests": {
"flamingo": "*"
Expand Down