Skip to content

Commit

Permalink
1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Dec 5, 2021
1 parent b6e2d50 commit 26e375c
Show file tree
Hide file tree
Showing 15 changed files with 239 additions and 175 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,50 +8,51 @@ on:
jobs:
build:

runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v1
with:
java-version: 16
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build curseforge publishModrinth --stacktrace
env:
curesforgeapikey: ${{secrets.CURESFORGEAPIKEY}}
modrinthapikey: ${{secrets.MODRINTH}}
- name: Zip create
run: |
cd build/libs
zip release *.*
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: GMRG-Release
path: build/libs
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build publish curseforge publishModrinth --stacktrace --no-daemon
env:
curesforgeapikey: ${{secrets.CURESFORGEAPIKEY}}
modrinthapikey: ${{secrets.MODRINTH}}
mavenpassword: ${{secrets.MAVEN}}
- name: Zip create
run: |
cd build/libs
zip release *.*
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: GMRG-Release
path: build/libs
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
with:
with:
tag_name: ${{ github.ref }}
release_name: MemoryUsageScreen - ${{ github.ref }}
body: |
The New Release!
Build by ${{ github.actor }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
with:
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/libs/release.zip
asset_name: MemoryUsageScreen.zip
asset_content_type: application/zip
asset_content_type: application/zip
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply from: "https://raw.githubusercontent.com/TeamFelnull/GradleTemplate/main/minecraft/1.17.1/forge_mixin.gradle"
apply from: "https://raw.githubusercontent.com/TeamFelnull/GradleTemplate/main/minecraft/1.18/forge_mixin.gradle"
apply from: "https://raw.githubusercontent.com/TeamFelnull/GradleTemplate/main/minecraft/upload.gradle"
apply from: "https://raw.githubusercontent.com/TeamFelnull/GradleTemplate/main/minecraft/publishing.gradle"

buildscript {
repositories {
Expand All @@ -16,3 +17,6 @@ buildscript {
}
}

minecraft {
//accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
}
21 changes: 14 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
#-----------------------------
mc_version=1.17.1
fg_version=1.17.1-37.0.70
mc_version=1.18
fg_version=1.18-38.0.14
#-----------------------------
mod_name=MemoryUsageScreen
mod_id=memoryusagescreen
mod_version=1.3
mod_group=net.morimori
mod_version=1.4
mod_group=net.morimori0317
mod_vendor=MORIMORI0317
mod_implevendor=MORIMORI0317
#-----------------------------
jei_version=1.17.1:8.0.0.16
jei_version=
#-----------------------------
#modmenu_version=2.0.0-beta.7
#cloth_config_version=
Expand All @@ -21,7 +21,14 @@ curesforge_id=500009
modrinth_id=n9mFA0ax
release_type=release
loader_type=Forge
support_versions=1.17.1
support_versions=1.18
required_mods=
optional_mods=
embedded_mods=
embedded_mods=
#-----------------------------
maven_description=Very Memory Usage Bar
maven_license_name=GNU Lesser General Public License v3.0
maven_license_url=https://www.gnu.org/licenses/lgpl-3.0.txt
maven_developer_name=MORIMORI0317
maven_developer_id=MORIMORI0317
maven_password=
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 26e375c

Please sign in to comment.