forked from Motschen/Blur
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4efd59
commit 17605c9
Showing
15 changed files
with
290 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,72 @@ | ||
on: | ||
push: | ||
branches: [ "fabric-1.19.3" ] | ||
pull_request: | ||
branches: [ "fabric-1.19.3" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build --stacktrace --info | ||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Blur-Artifact | ||
path: build/libs/blur-*.*.jar | ||
if-no-files-found: error | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Get previous tag | ||
run: echo "previous_tag=$(git rev-parse $(git describe --tags --abbrev=0 --exclude *-dev) 2>/dev/null || echo '')" >> $GITHUB_ENV | ||
|
||
- name: Build Changelog | ||
id: build_changelog | ||
uses: metcalfc/[email protected] | ||
if: env.previous_tag | ||
with: | ||
myToken: ${{ secrets.GITHUB_TOKEN }} | ||
head-ref: ${{ github.ref }} | ||
base-ref: ${{ env.previous_tag }} | ||
fetch: false | ||
|
||
- name: Read value from Properties-file | ||
id: read_property | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: './gradle.properties' | ||
properties: 'mod_version minecraft_version' | ||
|
||
- name: Upload assets to releases | ||
run: | | ||
chmod +x gradlew | ||
./gradlew build | ||
- name: Publish to Modrinth & CurseForge | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: oY2B1pjg | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
curseforge-id: 654373 | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
|
||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
name: "[${{ steps.read_property.outputs.minecraft_version }}] v${{ steps.read_property.outputs.mod_version }}" | ||
|
||
changelog: ${{steps.build_changelog.outputs.changelog}} | ||
|
||
version-type: release | ||
|
||
loaders: | | ||
neoforge | ||
forge | ||
game-versions: | | ||
${{ steps.read_property.outputs.minecraft_version }} | ||
dependencies: | | ||
config-menus-forge(optional){modrinth:5WeWGLoJ}{curseforge:544048} | ||
java: | | ||
17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
# Done to increase the memory available to gradle. | ||
org.gradle.jvmargs=-Xmx1G | ||
|
||
loom.platform=forge | ||
|
||
# Fabric Properties | ||
# check these on https://fabricmc.net/develop | ||
minecraft_version=1.20 | ||
yarn_mappings=1.20+build.1 | ||
loader_version=0.14.21 | ||
minecraft_version=1.20.1 | ||
yarn_mappings=1.20.1+build.10 | ||
loader_version=1.20.1-47.1.3 | ||
|
||
# Mod Properties | ||
mod_version=3.1.0 | ||
maven_group=com.tterrag.blur | ||
archives_base_name=blur | ||
mod_version=3.1.1 | ||
maven_group=com.github.dima_dencep.mods | ||
archives_base_name=blur-forge | ||
|
||
# Dependencies | ||
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api | ||
fabric_version=0.83.0+1.20 | ||
satin_version=1.13.0 | ||
midnightlib_version=1.4.1-fabric | ||
satin_version=1.20.1+1.15.0-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
pluginManagement { | ||
repositories { | ||
maven { | ||
name = 'Fabric' | ||
url = 'https://maven.fabricmc.net/' | ||
} | ||
maven { url "https://maven.fabricmc.net/" } | ||
maven { url "https://maven.architectury.dev/" } | ||
maven { url "https://maven.minecraftforge.net/" } | ||
gradlePluginPortal() | ||
} | ||
} | ||
|
||
rootProject.name = "blur" | ||
rootProject.name = "blur-forge" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.