-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
e5e4964
commit e81bfed
Showing
17 changed files
with
197 additions
and
58 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,42 +1,92 @@ | ||
name: Release | ||
on: [ | ||
workflow_dispatch | ||
] | ||
|
||
name: Publish Release | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
publish-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v3 | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Cache Gradle packages | ||
|
||
- name: Setup Gradle Caches | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
- run: chmod +x ./gradlew | ||
|
||
- name: Release | ||
run: ./gradlew :fabric:modrinth :forge:modrinth :fabric:curseforge :forge:curseforge | ||
env: | ||
CURSE_TOKEN: ${{ secrets.CURSE_TOKEN }} | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | ||
- name: Setup Gradle Wrapper | ||
run: chmod +x gradlew | ||
|
||
- run: ./gradlew generateDiscordEmbed | ||
- name: Get Version and Platform | ||
id: properties | ||
uses: christian-draeger/read-properties@1.1.1 | ||
with: | ||
path: "./gradle.properties" | ||
properties: "version enabledPlatforms minecraftVersion" | ||
|
||
- name: Publish Release | ||
run: ./gradlew publish --info | ||
env: | ||
MODRINTH_PROJECT_URL: ${{ secrets.MODRINTH_PROJECT_URL }} | ||
CURSE_PROJECT_URL: ${{ secrets.CURSE_PROJECT_URL }} | ||
EMBED_COLOR: ${{ secrets.EMBED_COLOR }} | ||
WEBHOOK_THUMBNAIL: ${{ secrets.WEBHOOK_THUMBNAIL }} | ||
WEBHOOK_USERNAME: ${{ secrets.WEBHOOK_USERNAME }} | ||
WEBHOOK_AVATAR: ${{ secrets.WEBHOOK_AVATAR }} | ||
|
||
- name: Trigger Discord Webhook | ||
MAVEN_USER: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASS: ${{ secrets.MAVEN_PASSWORD }} | ||
|
||
- name: Upload Forge Releases (Curse/Modrinth/Github) | ||
if: contains(steps.properties.outputs.enabledPlatforms, 'forge') | ||
uses: Kir-Antipov/mc-publish@v3.2 | ||
with: | ||
curseforge-id: ${{ vars.CURSE_ID }} | ||
curseforge-token: ${{ secrets.CURSE_TOKEN }} | ||
|
||
modrinth-id: ${{ vars.MODRINTH_ID }} | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
files: ./forge/build/libs/!(*-@(dev|sources|dev-shadow)).jar | ||
name: "[Forge] Handcrafted ${{ steps.properties.outputs.version }}" | ||
version: ${{ steps.properties.outputs.version }} | ||
version-type: release | ||
changelog-file: changelog.md | ||
loaders: forge | ||
game-versions: ${{ steps.properties.outputs.minecraftVersion }} | ||
version-resolver: exact | ||
|
||
dependencies: | | ||
resourceful-lib | depends | * | ||
- name: Upload Fabric Releases (Curse/Modrinth/Github) | ||
if: contains(steps.properties.outputs.enabledPlatforms, 'fabric') | ||
uses: Kir-Antipov/mc-publish@v3.2 | ||
with: | ||
curseforge-id: ${{ vars.CURSE_ID }} | ||
curseforge-token: ${{ secrets.CURSE_TOKEN }} | ||
|
||
modrinth-id: ${{ vars.MODRINTH_ID }} | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
files: ./fabric/build/libs/!(*-@(dev|sources|dev-shadow)).jar | ||
name: "[Fabric] Handcrafted ${{ steps.properties.outputs.version }}" | ||
version: ${{ steps.properties.outputs.version }} | ||
version-type: release | ||
changelog-file: changelog.md | ||
loaders: fabric | ||
game-versions: ${{ steps.properties.outputs.minecraftVersion }} | ||
version-resolver: exact | ||
|
||
dependencies: | | ||
fabric-api | depends | * | ||
resourceful-lib | depends | * | ||
- name: Generate Discord Embed | ||
run: ./gradlew injectEmbed | ||
|
||
- name: Upload Discord Embed | ||
uses: tsickert/discord-webhook@v5.3.0 | ||
with: | ||
webhook-url: ${{ secrets.WEBHOOK_URL }} | ||
raw-data: embed.json | ||
raw-data: ./build/embed.json |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
- Fix create integration |
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
29 changes: 29 additions & 0 deletions
29
common/src/main/resources/data/create/recipes/saw_bamboo_boards.json
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"fabric:load_conditions": [ | ||
{ | ||
"condition": "fabric:all_mods_loaded", | ||
"values": [ | ||
"create" | ||
] | ||
} | ||
], | ||
"conditions": [ | ||
{ | ||
"type": "forge:mod_loaded", | ||
"modid": "create" | ||
} | ||
], | ||
"type": "create:cutting", | ||
"ingredients": [ | ||
{ | ||
"item": "minecraft:bamboo_planks" | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"item": "handcrafted:bamboo_board", | ||
"count": 4 | ||
} | ||
], | ||
"processingTime": 10 | ||
} |
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
29 changes: 29 additions & 0 deletions
29
common/src/main/resources/data/create/recipes/saw_cherry_boards.json
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"fabric:load_conditions": [ | ||
{ | ||
"condition": "fabric:all_mods_loaded", | ||
"values": [ | ||
"create" | ||
] | ||
} | ||
], | ||
"conditions": [ | ||
{ | ||
"type": "forge:mod_loaded", | ||
"modid": "create" | ||
} | ||
], | ||
"type": "create:cutting", | ||
"ingredients": [ | ||
{ | ||
"item": "minecraft:cherry_planks" | ||
} | ||
], | ||
"results": [ | ||
{ | ||
"item": "handcrafted:cherry_board", | ||
"count": 4 | ||
} | ||
], | ||
"processingTime": 10 | ||
} |
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
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
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
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
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"embeds": [ | ||
{ | ||
"title": "Handcrafted", | ||
"description": "**Changelog:**\\n${changelog}", | ||
"color": 5814783, | ||
"fields": [ | ||
{ | ||
"name": "Minecraft Version", | ||
"value": "${minecraft}" | ||
}, | ||
{ | ||
"name": "Mod Version", | ||
"value": "${version}" | ||
}, | ||
{ | ||
"name": "Download", | ||
"value": "<:modrinth:1083795635414773760> [Modrinth](https://modrinth.com/mod/handcrafted)\\n<:curseforge:978684543026462790> [Curseforge](https://www.curseforge.com/minecraft/mc-mods/handcrafted)" | ||
} | ||
], | ||
"footer": { | ||
"text": "Want to support us? Check out our Ko-fi! http://kofi.terrarium.earth", | ||
"icon_url": "https://raw.githubusercontent.com/terrarium-earth/Handcrafted/1.20.x/common/src/main/resources/icon.png" | ||
}, | ||
"thumbnail": { | ||
"url": "https://cdn.discordapp.com/attachments/1094731881590833203/1106096454650568775/Cadmus_image.png" | ||
} | ||
} | ||
], | ||
"username": "Terrarium Releases", | ||
"avatar_url": "https://cdn.discordapp.com/avatars/955572264823300096/3c226580b871a57b6da095fea1cccf1e.webp" | ||
} |